I met many questions/answers which look like this:
Should I improve the formatting of those questions/answers?
I met many questions/answers which look like this:
Should I improve the formatting of those questions/answers?
Yes, please. That would make the code a lot easier to read. But make sure you improve other things in the post (grammar, capitalization, tags) as well. As your edits still go through the review queue, you should make sure you don't waste reviewers' time.
If there exists indention, but it is slightly weird, as in this case, you could edit the post and make the indention sane.
Though most of the time this is caused by beginners who indent with tab key, but haven't configured their editor to correctly insert spaces. In that case you aren't really doing them a favour by silently fixing the indention. It might be better to just leave a comment and point out this problem to them and have them fix it themselves.
As for posts where the indention is completely haywire, or entirely missing, then that's just plain rude to the people reading. In such cases, please don't edit the post and fix the indention for them, you are just "giving them fish" and encouraging them to come back with more utter crap questions. Leave a comment and prompt the OP to fix it themselves. Tell them how code formatting works if they have failed to grasp that part. Refuse to read or answer the question until they have fixed it. A down vote until they fix it might be good too.
cmmd + k
to make them all into one code, but the editor indents the previous code snippet so it can include the new code as well. Is there any fix for that?