Skip to content

AdjustNamespace is a Visual Studio extension which brings the C# namespaces in accordance with the location and rules the resulting regressions in the code.

License

Notifications You must be signed in to change notification settings

lsoft/AdjustNamespace

Repository files navigation

Adjust Namespaces

AdjustNamespace is a Visual Studio 2022 extension which brings the C# namespaces in accordance with the location and rules the resulting regressions in the code (including XAML), e.g. fixes the broken references. This extension works like Resharper Adjust namespaces function. If you know Resharper, you know what this extension is trying to do.

How to use

Select object (solution, project, folder or file) in solution explorer, click RMB, choose Adjust Namespaces... and follow the wizard.

Usage example

or choose the whole solution by this way:

Usage example

Usage example

You can also exclude some folders from participating in namespace chain. AdjustNamepace stores such settings in its configuration xml file, in the folder of your solution. Commit that file to share it across your team.

Remarks

I test it against plain C# code, WPF Xaml, and C# code from sqlproj. I encourage you test against your codebase and report bugs (with minimal repro) to https://github.com/lsoft/AdjustNamespace/issues.

About

AdjustNamespace is a Visual Studio extension which brings the C# namespaces in accordance with the location and rules the resulting regressions in the code.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages