24.5 IntelliJ Final Newline
20210312 Many editors will ensure that there is a newline (linefeed) at the end of a file on saving the file, as is expected by many tools and when processing a file. This ensures a common standard for the end of a file and when two files are being concatenated, for example, the second file always starts on a newline.
IntelliJ defaults to not checking for the final newline. To have IntelliJ add a newline on saving a file, if required, we change a setting:
Settings → Editor → General → Ensure line feed at file end on Save
Your donation will support ongoing development and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2021 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0.