Formatting the code en-masse in Visual Studio
- by AngryHacker
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?