« 上一篇下一篇 »

VS去除代码中的空行

1、ctrl+h
2、^\s*(?=\r?$)\n 替换全部


vs中批量删除注释


批量删除: 按ctrl+H 选上正则表达式
Find what: //.*\n
Replace with: (空)
点replace all就行了