Search code examples
rubymine

RubyMine 2016.2.1, Strip trailing spaces on Save not work


The RubyMine version 2016.2.1 not work Strip trailing spaces on Save. I think this worked with pre version.

My Preferences

enter image description here

My Code

enter image description here

the code have unnecessary only white lines.

How to remove the only white lines? is this RubyMine bug?


Solution

  • I asked The RubyMine version 2016.2.1 not work Strip trailing spaces on Save – JetBrains Support.

    Settings > Editor > Code Style > Ruby > Keep indents on empty lines was checked! I unchecked, tested the editor and it seems just fine :-)

    Uncheck Ruby > Keep indents on empty lines, then work.