Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove Unused Namespaces from entire project/solution

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.

like image 245
Yogi Avatar asked Feb 26 '26 00:02

Yogi


1 Answers

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).

like image 88
Konamiman Avatar answered Feb 28 '26 16:02

Konamiman