xxxxxxxxxx
in find replace add ^(?([^\r\n])\s)*\r?$\r?\n with regex enabled
xxxxxxxxxx
Press Ctrl + H (quick replace).
Click "Use Regular Expressions".
In Find specify "^$\n"
Click "Replace All". All Blank lines will be deleted.
xxxxxxxxxx
Open Tools > Options or press Alt + T + O.
Under Environment tab > Keyboard.
Search for "DeleteBlank" and select Edit.DeleteBlankLines.
Add a new shortcut for example Ctrl + D , Ctrl + E.
Assign > OK.
xxxxxxxxxx
in find & replace put ^\n with regex enabled in find and rpelace with blank.