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
What also works is this regex pattern:
^\s*$\n
Then CTRL+Enter to replace all lines.
Explanation of the above pattern:
-----------------------------------------------
| ^ | beginning of string anchor |
-----------------------------------------------
| \s | any whitespace character |
-----------------------------------------------
| '*'| zero or more repetitions |
-----------------------------------------------
| $ | end of string anchor |
-----------------------------------------------
| \n | new line |
-----------------------------------------------