Click here to Skip to main content
Click here to Skip to main content
Alternative Tip/Trick

Remove blank lines from code in Visual Studio

, 13 Oct 2010 CPOL
Rate this:
Please Sign up or sign in to vote.
Remove all blank lines, containing or not spaces:^:b*$\n
Remove all blank lines, containing or not spaces:
 
^:b*$\n

License

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

Share

About the Author

linebenchmark
Software Developer
Spain Spain
No Biography provided
Follow on   Twitter

Comments and Discussions

 
GeneralReason for my vote of 5 Great find. Its removing the blank l... PinmemberSyed Shabeer25-Oct-11 2:03 
GeneralReason for my vote of 5 Everybody forgets about blanks in an... PinmemberHarold Bamford24-Aug-11 13:03 
GeneralReason for my vote of 5 Good one .. PinmemberRedAsd27-Nov-10 21:44 
GeneralReason for my vote of 1 Very poor article Pinmemberrmarkram22-Oct-10 3:03 
GeneralReason for my vote of 5 Also this one is good too Pinmvpthatraja21-Oct-10 21:29 
GeneralReason for my vote of 5 Hay que ahorrar... Pinmembersouto18-Oct-10 20:41 
GeneralReason for my vote of 4 good one PinmemberMamta Malkar18-Oct-10 18:53 
GeneralReason for my vote of 1 Not working PinmemberPokar Satyam14-Oct-10 8:08 

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 | Mobile
Web01 | 2.8.141015.1 | Last Updated 13 Oct 2010
Article Copyright 2010 by linebenchmark
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid