Indentation on empty line going to far left


This might be a feature which i dont understand but why does the following happen:
Sometimes when i put my cursor on an empty line, it goes to the far left (near the line number) and does not keep the expected indentation. It just means that on new lines sometimes (it does work sometimes) i have to keep pressing tab so that the cursor moves to the correct indent line.

See screenshot to illustrate what i mean. In the screenshot, since and are on the same indent i cant understand why clicking on the empty line would not stay on the same indent. Any ideas why this is happening?

Thank you :slight_smile:


By default, Atom deletes trailing whitespace. Atom also has no concept of “virtual space” that would allow it to “keep the indentation” like you’re asking for. See the FAQ:


Thank you for the link and information Lee!