Does anyone know of a tool to remove redundant using
statements from classes, or a whole solution?
I'm using the Refactor! addin which has a "move type to separate file" smart tag, but it takes all the using
clauses from the original class with it.
VisualStudio 2008 does this out of the box.
Simply right click in the code window -> Organise Usings -> Remove Unused Usings.
You can set up a shortcut key to do this, as explained here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With