Visual Studio Code - delete all blank lines - regex

后端 未结 15 1216
心在旅途
心在旅途 2021-01-29 18:36

I spent some time trying to figure out how to delete all blank lines in Visual Studio Code and I can\'t get it working. Anybody knows how to do it please?

If I search fo

15条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-29 19:12

    At My case. kobi7 solution (\r?\n){2,} only worked for me, I had to run it again with small modification to make it work for single lines (just changed 2 to 1)

    ^(\r?\n){1,}
    

提交回复
热议问题