[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
  System Requirements
  Improve Performance
 [Expand]Features by Language
 [Expand]Getting Started
 [Expand]How To
 [Expand]Coding Assistance
 [Expand]Navigation and Search Tools
 [Expand]Static Code Analysis
 [Expand]Visualization Tools
 [Collapse]Code Style Assistance
  [Collapse]Code Formatters
    Add/Remove Block Delimiters
    Break Apart/Line Up Parameters/
    Break Apart/LineUp Attributes (XAML)
    Collapse Accessors
    Collapse/Expand Getter/Setter
    Collapse/Expand Method
    Collapse/Expand Property
    Remove All Redundant Block Delimiters
    Sort Namespace References
   Programming Style Rules
   Naming Conventions
   Code Cleanup
   Remove Unused Assembly References
   Document Formatting (C#)
   Document Formatting (XAML)
   Member Organization
   Move Member to Region
  Building Assistance
  Debugging Assistance
 [Expand]Refactoring Assistance
 [Expand]Unit Testing Assistance
 [Expand]Decompiling Tools
 [Expand]Configuration Options
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Sort Namespace References

Expanded Purpose

Sorts namespace references in the using section alphabetically or by length.

Expanded Availability

Available when the cursor is on a using (Imports) keyword.

Expanded Usage

  1. Place the caret on a using (Imports) keyword.


    The blinking cursor shows the caret's position at which the Code Formatter is available.

  2. Use the Ctrl + . or Ctrl + ~ shortcut to invoke the Code Actions Menu.
  3. Select Sort Namespace References from the menu.

After execution, the Code Formatter sorts the namespace references alphabetically.

Expanded Configuration

If you prefer sorting references by length, configure it in the Editor | All Languages | Namespace References options page.


This feature is available as a part of Code Cleanup.

Expanded See Also

Is this topic helpful?​​​​​​​