Visual Studio has ability to delete empty lines in 
replace operation using regular expressions.
1. Click Ctrl-H (quick replace)All empty lines will be deleted.
2. Check "Use Regular Expressions"
3. In Find type ^$\n
4. In Replace box set empty.
5. Click "Replace All"
 Regular 
expression for empty line consist of   
| Beginning of line ^ | ||
| End of line $ | 
| Line break \n | 
 
 
 

No comments:
Post a Comment