sublime text3使用正则表达式删除注释
2020-01-19 本文已影响0人
牛牛爱耍酷
1.点击view=>replace:

2.点击".*":

3.去除注释:
(Replace栏无需输入)
Python/Makefile: 输入# .*
C#/C/C++:输入 \/\* .* \*\/ (/* xxxx */ 注释)
输入 // .* ( // xxx注释)
汇编:输入 ; .*
点击Replace!!!!!!
1.点击view=>replace:
2.点击".*":
3.去除注释:
(Replace栏无需输入)
Python/Makefile: 输入# .*
C#/C/C++:输入 \/\* .* \*\/ (/* xxxx */ 注释)
输入 // .* ( // xxx注释)
汇编:输入 ; .*
点击Replace!!!!!!