Is there an easy way to remove unused using namespaces from the entire project or solution?
I know that you can remove the unused namespace of a particular class by
right click on using namespace statements >> Ogranize Usings >> Remove Unused Usings
But doing this for each and every class of the solution would be very tiresome.
I guess Resharper also allows doing this, but we are not using this tool.
Unfortunately Visual Studio does not offer this functionality. However there are extensions (other than Resharper) that do it, take a look for example at Productivity Power Tools (it's free).
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