用 Sublime Text 中的实际新行替换 \n
问题描述:
如何用真正的编辑器内显示的新行替换 Sublime Text 中的 \n
,以便:
How can I replace \n
in Sublime Text with real in-editor displayed new line so:
foo\nbar
变成:
foo
bar
在编辑器中查看文件时.
in the editor when I view the file in it.
答
打开正则表达式搜索和替换(搜索和替换栏最左侧的图标或快捷方式 Alt + R)
Turn on Regex Search and Replace (icon most to the left in search and replace bar or shortcut Alt + R)
查找内容:\\n
替换为:\n
干杯