Last Updated: February 25, 2016
·
661
· pentago

Remove emtpy lines in SublimeText 2

  1. Find/Replace (CTRL+H)
  2. RegExp
  3. Find what: ^\s*$\n
  4. Replace With: empty space

Empty lines selection in Sublimetext

4 Responses
Add your response

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 ·