Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>C# Sort UsingsNew to Visual Studio Code? Get it now.
C# Sort Usings

C# Sort Usings

Jon Grant

|
38,401 installs
| (1) | Free
Sort using statements
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Marketplace Installs Rating

CSharpSortUsings for Visual Studio Code

This extension helps to format C# using statements.

Features

  • Sorts usings in alphabetical order. Doubles will be removed automatically.
  • Triggered via context menu or "sort usings" command.

Extension Settings

  • sort.usings.order: Put namespaces in proper order. Values should be splitted with space. "System" by default.
  • sort.usings.splitGroups: Insert blank line between using blocks grouped by first part of namespace. True by default.

Installation of release version

Use instructions from marketplace.

Installation from sources

  1. Install node.js.
  2. Run "npm install" from project folder.
  3. Run "npm run package" from project folder.
  4. Install brand new packed *.vsix bundle through vscode plugins menu option "Install from VSIX".
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft