Sublime Text 2 – Delete Empty Lines

cmd+h || ctrl+h
turn on regex mode (leftmost toggle button)
search for “^\s*$” without the quotes
find all
backspace

If you want only completely empty lines and not just blank ones, search for “^$” instead.

Tweet It. Share It.

See more Code Snippet, Sublime Text Editor