Click here to Skip to main content
13,289,653 members (57,087 online)
Click here to Skip to main content
Add your own
alternative version


30 bookmarked
Posted 13 Oct 2010

Remove blank lines from code in Visual Studio

, 13 Oct 2010
Rate this:
Please Sign up or sign in to vote.
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


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


About the Author

Dave Paras
Software Developer
India India
No Biography provided

You may also be interested in...


Comments and Discussions

GeneralReason for my vote of 5 Really very helpful Pin
Pokar16-Oct-10 9:12
memberPokar16-Oct-10 9:12 
GeneralReason for my vote of 5 Amazing! Pin
Pokar Satyam14-Oct-10 9:06
memberPokar Satyam14-Oct-10 9:06 
GeneralReason for my vote of 5 Great! Pin
Doshi Kavita14-Oct-10 2:14
memberDoshi Kavita14-Oct-10 2:14 
GeneralReason for my vote of 5 Really This was helpfull Pin
Uday Kumar B R13-Oct-10 20:29
memberUday Kumar B R13-Oct-10 20:29 
GeneralReason for my vote of 4 Not working properly, but thanks for... Pin
Hiren Solanki13-Oct-10 4:36
memberHiren Solanki13-Oct-10 4:36 
GeneralReason for my vote of 4 Good one... Pin
Virendra Dugar13-Oct-10 3:53
memberVirendra Dugar13-Oct-10 3:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.171207.1 | Last Updated 13 Oct 2010
Article Copyright 2010 by Dave Paras
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid