我注意到,当我加载一个文本文件时,Notepad++会识别并使用该文件中的任何换行符。\n
或 \r\n
.
有没有一些选项可以让我在新文档中选择使用?(我在帮助和谷歌上都找过了,但没有找到。)
对于一个新文件。Settings -> Preferences -> New Document/Default Directory
-> New Document -> Format -> Windows/Mac/Unix
对于一个已经打开的文件: Edit -> EOL Conversion
"Edit -> EOL Conversion". 你可以在那里转换为WindowsLinuxMac EOL。当前的格式会显示在状态栏中。
在windows10上,记事本7.8.5,我找到了这个解决方案,将CRLF转换为LF。Edit > Format end of line
然后选择 Windows(CR+LF)
或 Unix(LF)