Skip to main content

Sort Namespace References

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

#Availability

Available from the context menu or via shortcuts:

  • when the cursor is anywhere within the using section.

Note

Each sorting parameter is available, if the namespaces are not yet sorted by it.

#Examples

using System;
using TestNamespace;
using System.Collections.Generic;
using System.Text;
Imports System.Collections.Generic
Imports MyApplication.TestNamespace
Imports System.Text

Result:

using System;
using System.Text;
using TestNamespace;
using System.Collections.Generic;
Imports System.Text
Imports System.Collections.Generic
Imports MyApplication.TestNamespace

#Screenshot

rsSortNamespaceReferences