Skip to content

Instantly share code, notes, and snippets.

@cijagani
Created February 4, 2018 07:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save cijagani/bf2be487a9eaa7227aee45cfeef4dcaa to your computer and use it in GitHub Desktop.
Save cijagani/bf2be487a9eaa7227aee45cfeef4dcaa to your computer and use it in GitHub Desktop.
sublime-3 remove unnecessary blank-lines and white spaces
A better way to find all empty lines (including ones with whitespace) would be: ^[\s]*?[\n\r]+
@cijagani
Copy link
Author

cijagani commented Feb 4, 2018

A better way to find all empty lines (including ones with white space)

type the following expression in sublime(ctrl + f)

^[\s]*?[\n\r]+

and replace with nothing and press replace button

that's it
git

@cijagani
Copy link
Author

remove comments in code
(^//.)|(\s+//.)|((/*)(.|\n)+?(*/))

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