How to remove empty lines in text In Visual Studio?
How to remove empty lines in text In Visual Studio?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ashish SrivastavaPosted Apr 3, 2016, 5:47 AM
Click Ctrl-H (quick replace)
Tick "Use Regular Expressions"
In Find specify
^$\nIn Replace box delete everything.
Click "Replace All"
All empty lines will be deleted.
Regular expression for empty line consist of
Beginning of line
^End of line
$Line break
\n