How to Remove Unused Imported Namespaces in Visual Studio

Leave a Comment
There are many ways to remove unused namespaces or references that visual studio import default namespaces when you create class.

In below we have to explain easy way to remove unused namespaces from header in class.

First Right click on the group of import statements than click organize using and click Remove and sort. See below screenshot -

Remove Unused Imported Namespaces in Visual Studio

Now, you can see visual studio remove the unused namespaces from header in class that is not used in class.

0 comments:

Post a Comment