在记事本++中选择换行符

我注意到,当我加载一个文本文件时,Notepad++将识别并使用该文件中的换行符,\n\r\n

有没有一些选项,我可以选择在默认情况下使用新文档?
(我查看了“帮助”和“谷歌”,但什么也没找到。)

136738 次浏览

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

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

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)

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.

How to change the EOL format in Notepad++.

Just an alternative to the "new document" setting mentioned earlier …