Intellij editor using \r\n as line break. How to set it using \n only?
Default separator can be changed in the code style settings:
For the existing files you can switch it via the status bar:
IntelliJ IDEA 14 & 16:
Change separator for IDE:
File > Settings... > Editor > Code Style > Line separator (for new files):
Change separator for the current file:
File > Line Separators
or from the bottom right side (
click on CRLF/LF/CR
):