Reputation: 51109
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 by default for new documents?
(I've looked in help and googled, but can't find anything.)
Upvotes: 206
Views: 156007
Reputation: 81
Just double-click on that EOL format in the status bar and select Unix(LF).
It's not possible to default save a file in this (LF
) format.
Just an alternative to the "new document" setting mentioned earlier …
Upvotes: 6
Reputation: 18633
For any new document: Settings -> Preferences -> New Document (left pane) -> New Document (right pane) -> Format (Line ending) -> Windows (CR LF) / Unix (LF) / Macintosh (CR)
And for an already-open document: Edit -> EOL Conversion
Upvotes: 358
Reputation: 2106
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)
Upvotes: 4
Reputation: 31265
"Edit -> EOL Conversion". You can convert to Windows/Linux/Mac EOL there. The current format is displayed in the status bar.
Upvotes: 85