Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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
Copy link

romuloctba commented Feb 17, 2019

Update: Use GIT and this won`t happen
(It converts CRLF to LF)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment