Visual Studio Code - delete all blank lines - regex

后端 未结 15 1248
心在旅途
心在旅途 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:06

    no, you're doing it right.

    I get the same behaviour here.

    I also tried another regex: (\r?\n){2,} but it seems that it only works for single lines.

    maybe there is a preference to change the default regexp behaviour, or maybe VS is just built in such a way (line based)

    ofcourse it's not a big deal to cut-paste and back from another text editor.

提交回复
热议问题