Click here to Skip to main content
11,434,611 members (57,939 online)
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

 
GeneralMy vote of 1 Pin
Member 1102894921-Feb-15 3:49
memberMember 1102894921-Feb-15 3:49 
GeneralReason for my vote of 5 Great find. Its removing the blank l... Pin
Syed Shabeer25-Oct-11 3:03
memberSyed Shabeer25-Oct-11 3:03 
GeneralReason for my vote of 5 Everybody forgets about blanks in an... Pin
Harold Bamford24-Aug-11 14:03
memberHarold Bamford24-Aug-11 14:03 
GeneralReason for my vote of 5 Good one .. Pin
RedAsd27-Nov-10 22:44
memberRedAsd27-Nov-10 22:44 
GeneralReason for my vote of 1 Very poor article Pin
rmarkram22-Oct-10 4:03
memberrmarkram22-Oct-10 4:03 
GeneralReason for my vote of 5 Also this one is good too Pin
thatraja21-Oct-10 22:29
mvpthatraja21-Oct-10 22:29 
GeneralReason for my vote of 5 Hay que ahorrar... Pin
souto18-Oct-10 21:41
membersouto18-Oct-10 21:41 
Reason for my vote of 5
Hay que ahorrar...
GeneralReason for my vote of 4 good one Pin
Mamta Malkar18-Oct-10 19:53
memberMamta Malkar18-Oct-10 19:53 
GeneralReason for my vote of 1 Not working Pin
Pokar Satyam14-Oct-10 9:08
memberPokar Satyam14-Oct-10 9: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 | Terms of Use | Mobile
Web04 | 2.8.150428.2 | Last Updated 13 Oct 2010
Article Copyright 2010 by linebenchmark
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid