Click here to Skip to main content
11,582,850 members (71,372 online)
Click here to Skip to main content

Remove blank lines from code in Visual Studio

, 13 Oct 2010 CPOL 54.3K 29
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. Smile | :)
^ 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)

Share

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 8:12
memberPokar16-Oct-10 8:12 
GeneralReason for my vote of 5 Amazing! Pin
Pokar Satyam14-Oct-10 8:06
memberPokar Satyam14-Oct-10 8:06 
GeneralReason for my vote of 5 Great! Pin
Doshi Kavita14-Oct-10 1:14
memberDoshi Kavita14-Oct-10 1:14 
GeneralReason for my vote of 5 Really This was helpfull Pin
Uday Kumar B R13-Oct-10 19:29
memberUday Kumar B R13-Oct-10 19:29 
GeneralReason for my vote of 4 Not working properly, but thanks for... Pin
Hiren Solanki13-Oct-10 3:36
memberHiren Solanki13-Oct-10 3:36 
GeneralReason for my vote of 4 Good one... Pin
Virendra Dugar13-Oct-10 2:53
memberVirendra Dugar13-Oct-10 2:53 

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

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

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