Create a gist now

Instantly share code, notes, and snippets.

Hot to remove extra blank lines on files

How to Remove extra blank lines on files

Simple, just do a search and replace using regex.

At Sublime Text, just ctrl+h and click the Regular Expression icon (The first on the left, like the Sum Symbol)

  • Find What: [\r\n]{2,}
  • Replace With: \n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment