How to make IntelliJ IDEA insert a new line at every end of file?
问题 How do I make IntelliJ IDEA insert a new line at every end of file, so that GitHub doesn't complain for example? 回答1: Change your Editor settings: Settings → Editor → General → Ensure line feed at file end on Save 回答2: For MAC users: Preferences > Editor > General > Ensure line feed at file end on save 回答3: IntelliJ IDEA 2016.3 Approach 1 File > Settings... > Editor > General > Ensure line feed at file end on Save Approach 2 Help > Find Action... ( Ctrl + Shift + A ) > type " Ensure line feed