Formatting the code en-masse in Visual Studio
Posted
by AngryHacker
on Stack Overflow
See other posts from Stack Overflow
or by AngryHacker
Published on 2010-03-18T23:17:57Z
Indexed on
2010/03/18
23:21 UTC
Read the original article
Hit count: 489
I've inherited a project where all the private variables, and there are thousands, are separated by a blank line. For instance,
private pnlSecurityReport _pnlSecurityReport = null;
private pnlCalendar _pnlCalendar = null;
private CtlContacts _pnlContacts = null;
private pnlEmails _pnlEmails = null;
private CtlNotes _pnlNotes = null;
private pnlRoles _pnlRoles = null;
private pnlSecurity _pnlSecurity = null;
private pnlSignatures _pnlSignatures = null;
This is really annoying. I'd like to remove the blank lines. Beyond writing my own tool to seek out and remove the extra line, is there a way to do this, perhaps, using RegEx-Fu in the Search and Replace dialog?
© Stack Overflow or respective owner