How to make IntelliJ IDEA insert a new line at every end of file?

NightRa picture NightRa · May 26, 2013 · Viewed 63.2k times · Source

How do I make IntelliJ IDEA insert a new line at every end of file, so that GitHub doesn't complain for example?

Answer

NightRa picture NightRa · May 26, 2013

Change your Editor settings:

Settings → Editor → General → Ensure line feed at file end on Save