VSCode 删除空行

1. 打开 VSCode 的 Replace 面板

Ctrl + H 快捷键
image.png

2. 使用正则表达式匹配空行并

正则表达式如下:

^\s*(?=\r?$)\n

image.png

# vscode   空行  

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×