65.9K
CodeProject is changing. Read more.
Home

Remove blank lines from code in Visual Studio

starIconstarIconstarIconstarIcon
emptyStarIcon
starIcon

4.77/5 (48 votes)

Oct 13, 2010

CPOL
viewsIcon

124822

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