Choose newline character in Notepad++

Notepad++Eol

Notepad++ Problem Overview


I notice that when I load a text file, Notepad++ will recognize and use whatever the newline character in that file is, \n or \r\n.

Is there some option where I can select which to use in a new document? (I've looked in help and googled, but can't find anything.)

Notepad++ Solutions


Solution 1 - Notepad++

For a new document: Settings -> Preferences -> New Document/Default Directory -> New Document -> Format -> Windows/Mac/Unix

And for an already-open document: Edit -> EOL Conversion

Solution 2 - Notepad++

"Edit -> EOL Conversion". You can convert to Windows/Linux/Mac EOL there. The current format is displayed in the status bar.

Solution 3 - Notepad++

on windows 10, Notepad 7.8.5, i found this solution to convert from CRLF to LF.
Edit > Format end of line
and choose either Windows(CR+LF) or Unix(LF)

Solution 4 - Notepad++

Notepad++ - change the EOL format

Just double click on that EOL format in status bar and select Unix(LF). It's not possible to default save it in this (LF) format. Just option for new document mentioned earlier...

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionLuigi PlingeView Question on Stackoverflow
Solution 1 - Notepad++VladView Answer on Stackoverflow
Solution 2 - Notepad++YadaView Answer on Stackoverflow
Solution 3 - Notepad++velocityView Answer on Stackoverflow
Solution 4 - Notepad++user14714651View Answer on Stackoverflow