Search code examples
c#visual-studiovisual-studio-2012refactoringautomated-refactoring

How to remove redundant type qualifier solution wide?


Throughout our solution we have redundant type qualifiers like the following:

using Project.Folder;
...
Project.Folder.Enum enum = Project.Folder.Enum.Option;

I am looking for a way to find and remove all the Project.Folder.'s that are redundant (some won't be). Is there any tool other than Resharper that is capable of this mass refactoring?


Solution

  • For future questioners, note that in Visual Studio 2019, you can do this similar to Resharper. Right click on a refactoring suggestion and there should be a "fix in entire Solution" option.

    VS 2019 solution-wide refactor