Saving removes whitespace on whitespace-only line

If you have a line with whitespace only, and your caret is at the end of that line, and you hit save (CTRL+S), then the whitespace is stripped.

 

Personally, I tap CTRL+S without thinking about it whenever I have a second-long pause in my typing, and this makes me have to add the whitespace again.

 

This is of course only a very minor inconvenience, but is there an option to disable this mechanic?

 

Using version 2016.3 on Debian Jessie.

 

Thanks in advance for any tips!

0
1 comment

I apologize. I didn't look hard enough. I found the checkbox!

 

In case someone else wonders the same:

Settings -> Editor -> Code Style -> [relevant language] -> Keep indents on empty lines

0

Please sign in to leave a comment.