Skip to content

Instantly share code, notes, and snippets.

@cijagani
Created February 4, 2018 07:24
Show Gist options
  • 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

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

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