Wednesday, September 4, 2013

Remove blank lines from code in Visual Studio?

1. Click Ctrl+H (quick replace)
2. Tick "Use Regular Expressions"
3. In Find specify "^$\n"
4. In Replace box delete everything.
5. Click "Replace All"
All Blank lines will be deleted. :)
^ Means Beginning of line
$ Means End of line

No comments:

Post a Comment