Search code examples
macosrubymine

Ensure newline at EOF in RubyMine


How does one enforce a newline at end of file in RubyMine (v 4.5.3, on Mac OS)?
e.g., similar to Sublime Text 2


Solution

  • Enable Ensure blank line before end of file on Save option in the Editor settings:

    Ensure blank line before end of file on Save