用 Sublime Text 中的实际新行替换 \n [英] Replace \n with actual new line in Sublime Text

查看:66
本文介绍了用 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

干杯

这篇关于用 Sublime Text 中的实际新行替换 \n的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆