Choose newline character in Notepad++

Luigi Plinge picture Luigi Plinge · Nov 19, 2011 · Viewed 120.9k times · Source

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.)

Answer

Vlad picture Vlad · Nov 19, 2011

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