Since Visual Studio 2012 changed its regex syntax
Remove single blank lines
Old:
^:b*$\n
New:
^(?([^\r\n])\s)*\r?$\r?\n
Visual Studio 2013 :
^\s+$\n
Remove double blank lines
Old:
^:b*\n:b*\n
New:
^(?([^\r\n])\s)*\r?\n(?([^\r\n])\s)*\r?\n
Another
-
Click Ctrl-H (quick replace)
-
Tick "Use Regular Expressions"
-
In Find specify
^$\n
-
In Replace box delete everything.
-
Click "Replace All"