World of Codecraft
My thoughts on life, code and Warcraft. ;)
Dec 14, 2011
Remove empty lines in text using Visual Studio
Visual Studio has ability to delete empty lines in replace operation using regular expressions.
Click Ctrl-H (quick replace)
Tick "Use Regular Expressions"
In Find specify ^$\n
In Replace box delete everything.
Click "Replace All"
All empty lines will be deleted.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment