Yogi
Yogi

Reputation: 9739

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.

Upvotes: 3

Views: 3202

Answers (1)

Konamiman
Konamiman

Reputation: 50273

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

Upvotes: 4

Related Questions