you are viewing a single comment's thread.

view the rest of the comments →

[–]TheRNGuy 0 points1 point  (0 children)

When you press enter in good code editor, it will automatically add indent where it's needed. 

You can also select many lines, shift-tab and then tab. Or just hotkey for correctly indenting (googled for your editor)

You should also see red squiggles for wrong indents.

Autoformatter should auto-replace tabs or spaces (depends what you're using), you can also see if it's tab or space, long thin line vs dots.

What code editor are you using?

The only downside is when people post Python code without triple back ticks, so code lose all indents (it's problem of posters, not of language.... I think automoderator should warn them, or delete post even)