经常从网上复制的代码都有很多空行,一行行删除太费事,现在我找到了一个方法,按下面的步骤即可一次性把所有的空行删除

1. Click Ctrl+H (quick replace)
2. Tick "Use Regular Expressions"
3. In Find specify "^$\n"
4. In Replace box delete everything.
5. Click "Replace All"
All Blank lines will be deleted. 
^ Means Beginning of line
$ Means End of line

VS2010中如何快速删除空行?

 

相关文章:

  • 2021-04-23
  • 2021-05-21
  • 2021-10-15
  • 2022-12-23
  • 2021-12-15
  • 2022-12-23
  • 2021-11-14
  • 2022-12-23
猜你喜欢
  • 2021-12-05
  • 2021-12-05
  • 2021-07-14
  • 2021-04-17
  • 2021-05-27
  • 2021-08-08
相关资源
相似解决方案