VS2015,vs2019用正则表达式搜索删除空白行的方法
VS2015用正则表达式搜索删除空白行的方法
在vs编辑器中有时需要批量删除无用的空白行,为此,可以使用vs编辑器的查找替换功能:
1. Ctrl+H,打开替换功能框。
2.选择“使用正则表达式”,“当前文档”。
3.在查找框中输入: (?<=\r\n)\r\n
4.全部替换
VS2015产品激活密钥
专业版:HMGNV-WCYXV-X7G9W-YCX63-B98R2
企业版:HM6NR-QXX7C-DFW2Y-8B82K-WTYJV
vs2019用正则表达式搜索删除空白行的方法
使用字符:^(?([^\r\n])\s)*\r?$\r?\n
全部替换。
VS2019专业版和企业版激活密钥
Visual Studio 2019 Professional
NYWVH-HT4XC-R2WYW-9Y3CM-X4V3Y
Visual Studio 2019 Enterprise
BF8Y8-GN2QH-T84XB-QVY3B-RC4DF
_________________________________________________________________________________________________________________________________________________
每一个不曾起舞的日子,都是对生命的辜负。
But it is the same with man as with the tree. The more he seeks to rise into the height and light, the more vigorously do his roots struggle earthward, downward, into the dark, the deep - into evil.
其实人跟树是一样的,越是向往高处的阳光,它的根就越要伸向黑暗的地底。----尼采
每一个不曾起舞的日子,都是对生命的辜负。
But it is the same with man as with the tree. The more he seeks to rise into the height and light, the more vigorously do his roots struggle earthward, downward, into the dark, the deep - into evil.
其实人跟树是一样的,越是向往高处的阳光,它的根就越要伸向黑暗的地底。----尼采