Created
February 4, 2018 07:24
-
-
Save cijagani/bf2be487a9eaa7227aee45cfeef4dcaa to your computer and use it in GitHub Desktop.
sublime-3 remove unnecessary blank-lines and white spaces
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A better way to find all empty lines (including ones with whitespace) would be: ^[\s]*?[\n\r]+ |
remove comments in code
(^//.)|(\s+//.)|((/*)(.|\n)+?(*/))
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A better way to find all empty lines (including ones with white space)
type the following expression in sublime(ctrl + f)
and replace with nothing and press replace button
that's it
