在Notepad++中选择换行符

问题描述 投票:171回答:3

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

有没有一些选项可以让我在新文档中选择使用?(我在帮助和谷歌上都找过了,但没有找到。)

notepad++ eol
3个回答
294
投票

对于一个新文件。Settings -> Preferences -> New Document/Default Directory -> New Document -> Format -> Windows/Mac/Unix

对于一个已经打开的文件: Edit -> EOL Conversion


78
投票

"Edit -> EOL Conversion". 你可以在那里转换为WindowsLinuxMac EOL。当前的格式会显示在状态栏中。


0
投票

在windows10上,记事本7.8.5,我找到了这个解决方案,将CRLF转换为LF。Edit > Format end of line 然后选择 Windows(CR+LF)Unix(LF)

© www.soinside.com 2019 - 2024. All rights reserved.