VS2010/VS 2013 删除空行

VS 2010

 

查找内容:^:b*$\n

替换为:

查找范围:当前文档

使用:正则表达式

 

 

VS 2013

改变了正则表达式的写法
因此原来的不管用了
Old:
^:b*$\n
New:
^(?([^\r\n])\s)*\r?$\r?\n
^\s*(?=\r?$)\n
 
Click Ctrl-H (quick replace)
Tick "Use Regular Expressions"
In Find specify
^(?([^\r\n])\s)*\r?$\r?\n
In Replace box delete everything.
Click "Replace All"

 

posted @ 2012-03-08 12:32  Areas  阅读(514)  评论(0编辑  收藏  举报