- Enter: Ctrl+H
- Find what: ^:b*$\n
- Replace with: [Empty]
- Look in: Current Document
- Find Option: Use Regular Expressions
- Click: Replace All
在正则表达式^:b*$\n中,^表示一行的开始,$表示一行的结束,:b表示空格或tab,*表示0个或多个。\n表示换行符。
Visual Studio中如何删除所有空行?
最新推荐文章于 2025-04-05 16:33:49 发布