我如何才能找到/替换所有CR/LF字符在notepad++ ?

我正在寻找一些相当于微软Word中的^p特殊字符。


当前回答

也许你可以使用TextFX插件

在TextFX中,点击TextFX编辑→删除空行

其他回答

也许你可以使用TextFX插件

在TextFX中,点击TextFX编辑→删除空行

做这个设置。菜单->视图->显示符号->取消勾选显示行结束

这似乎是一个常见问题,提供的解决方案是:

Simple search (Ctrl+H) without regexp You can turn on View/Show End of Line or view/Show All, and select the now visible newline characters. Then when you start the command some characters matching the newline character will be pasted into the search field. Matches will be replaced by the replace string, unlike in regex mode. Note 1: If you select them with the mouse, start just before them and drag to the start of the next line. Dragging to the end of the line won't work. Note 2: You can't copy and paste them into the field yourself. Advanced search (Ctrl+R) without regexp Ctrl+M will insert something that matches newlines. They will be replaced by the replace string.

使用高级搜索选项(Ctrl + R)并使用键盘快捷键CRLF (Ctrl + M)插入回车符。

在2013年v6.13或更高版本中,使用:

菜单编辑→EOL转换→Windows格式。