Remove emtpy lines in SublimeText 2
- Find/Replace (CTRL+H)
- RegExp
- Find what: ^\s*$\n
- Replace With: empty space
Written by Goran
Related protips
4 Responses

Hey Goran! Nice tip! But isn't this [^\s*$\n] only? (not [^\s*$\n /] ) Typo? :)
over 1 year ago
·

If the asterisk is bothering you, try the HTML ASCII entity code: *
over 1 year ago
·

noted :)
over 1 year ago
·

"trim_trailing_white_space_on_save": true,
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Sublimetext
Authors
Related Tags
#sublimetext
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#