Reputation: 2488
I noticed Intellij Idea auto formatting removes spaces from blank lines. In an example below spaces are shown with "_"
__line1
__
__line3
And idea makes that:
__line1
__line3
How can I turn that off? It prevents using subversion.
Upvotes: 5
Views: 10375
Reputation: 2816
In newer version of IntelliJ the setting is named:
Remove trailing spaces on
You can also hit key sets: Ctrl
+ Shift
+ A
and type:
Remove trailing spaces on
It will bring you to this dialog:
anf after you click it you will be autmaticaly redirected to the settings page.
Upvotes: 0
Reputation: 10322
This is found under:
File > Settings > Editor > General > Strip trailing spaces on Save
IntelliJ IDEA > Preferences > Editor > General > Strip trailing spaces on Save
IntelliJ gives you the ability to search in the Preferences dialog. You can narrow down the list of options by searching for "trailing", for example.
Upvotes: 10
Reputation: 56616
File > Settings... > Editor > General > Strip trailing spaces on Save: None
Upvotes: 3