Skip to content
| Marketplace
Sign in
Visual Studio>Tools>Using Directive Formatter VS2022
Using Directive Formatter VS2022

Using Directive Formatter VS2022

Gregor Mohorko

|
1,509 installs
| (1) | Free
Formats using namespace directives in C# code. Allows you to specify (with regex) which namespaces to put where. This is super helpful when you want to order usings from the system to domain. It also
Download

UsingDirectiveFormatter

  • Formats using namespace directives for C# codes
    • Can be configured to automatically format on Save
  • The using directives will be placed inside or outside the namespace declaration, depending on user configuration
  • Order using directives by length or alphabetically, so that they appear in order
  • Supports order chaining
  • Supports grouping of using directives. Sorting happens within groups in this case.
  • Currently supported versions: Visual Studio 2022

A quick demo and options panel is provided as below:

demo.gif udf_option.gif

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft