How do I make IntelliJ IDEA insert a new line at every end of file,
so that GitHub doesn't complain for example?
Intellij-idea – How to make IntelliJ IDEA insert a new line at every end of file
intellij-idealinefeed
Related Topic
- Java – How to set up IntelliJ IDEA for Android applications
- Java – IntelliJ inspection gives “Cannot resolve symbol” but still compiles code
- Java – How to use IntelliJ IDEA to find all unused code
- Java – How to change the IntelliJ IDEA default JDK
- Intellij-idea – How to change line width in IntelliJ (from 120 character)
- Android – Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6
Best Answer
Change your Editor settings:
Settings → Editor → General → Ensure line feed at file end on Save