remove empty lines vs code code example
Example 1: remove empty lines visual studio
^(?([^\r\n])\s)*\r?$\r?\n
Example 2: vs code delete empty lines
in find & replace put ^\n with regex enabled in find and rpelace with blank.
^(?([^\r\n])\s)*\r?$\r?\n
in find & replace put ^\n with regex enabled in find and rpelace with blank.