11/21/2014

[Sublime Text] How to delete blank / empty lines?

Ref: stackoverflow


Step 1. Ctrl + H to bring out replace panel
Step 2. Alt + R to confirm REGEX mode ('regular expression')
Step 3. 

             Find: ^(\r|\n\r?) to cover all possible line breaks.

             Find: ^[\s]*?[\n\r]+  to find all empty lines (including ones with white space)


No comments: