vscode中检测代码中的空白行并去除的方法

按下ctrl+h键进行正则匹配:^\s*(?=\r?$)\n


然后直接替换,再看代码发现空行已经不见了。

猜你喜欢

转载自blog.csdn.net/qq_37705048/article/details/79925992