简单快速清除代码或文本中无用的空白行

/ 807 阅读 / 0

有时我们想要简单快速的清除代码或文本中无用的空白行,可以在 Sublime Text 里尝试一下。

  1. 打开 Sublime Text
  2. 按下 Ctrl+H,打开搜索功能。
  3. 勾选左侧的.*正则表达式(regular expression)。
  4. 在 Find 栏中输入正则表达式^(\t)*$\n
  5. 在 Replace 栏留空。
  6. 点击 Replace All 即可。
404 Not Found

404

Not Found

The resource requested could not be found on this server!


Proudly powered by LiteSpeed Web Server

Please be advised that LiteSpeed Technologies Inc. is not a web hosting company and, as such, has no control over content found on this site.