Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Sortier - Code sorterNew to Visual Studio Code? Get it now.
Sortier - Code sorter

Sortier - Code sorter

Snowcoders

|
1,396 installs
| (1) | Free
Code sorting via sortier
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Sortier for Visual Studio Code

An opinionated Code Sorter

Sortier for Visual Studio Code is an extension that allows you to run Sortier from the IDE

Sortier is an opinionated code sorter similar to how Prettier is a opinionated code formatter. Given a file, it parses then figures out how to sort and rearrange source code in a consistent way.

Examples of what sortier will sort:

  • Import statements
  • Import specifiers
  • Union types
  • Keys and properties within objects and types
  • And more!

It should work with JavaScript ES6, Flow and Typescript but if you find a piece of code that doesn't sort the way you expect it to, feel free to open an issue in Github!

For more information about Sortier, go to https://github.com/snowcoders/sortier

Run it

  1. Show all commands
  • Windows - F1 or Ctrl + Shift + P
  • Mac - Ctrl + Cmd + P
  1. Run Sortier

Extension Settings

sortier.onSave (default: false)

Runs sortier on save of any file

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