Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / web / ASP.NET

Remove blank lines from code in Visual Studio

4.77/5 (52 votes)
13 Oct 2010CPOL 124.8K  
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

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)