Angelo Lee's Blog
This is my kingdom .If i don't fight for it ,who will ?

在Visual Studio中, 可以用正则表达删掉所有的空行

下面是具体操作步骤:

  1. Enter: Ctrl+H
  2. Find what: ^:b*$/n
  3. Replace with: [Empty]
  4. Look in: Current Document
  5. Find Option: Use Regular Expressions
  6. Click: Replace All

这种方法只能对整个文件进行操作, 而不能选中某些行进行操作.

posted on 2011-06-17 09:02  Angelo Lee  阅读(254)  评论(0编辑  收藏  举报