VisualStudio替换所有空行

 [一篮饭特稀原创,转载请注明出自http://www.cnblogs.com/wanghafan/p/3371620.html]

Ctrl+Shift+H

查找内容    //如果要替换换行前有空格的空行则 [^S ]

替换内容

查找范围-当前项目

查找选项-使用正则表达式

查找文件类型-*.cs

多次点击全部替换

原文地址:https://www.cnblogs.com/wanghafan/p/3371620.html