Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>ES6 and TypeScript import sorterNew to Visual Studio Code? Get it now.
ES6 and TypeScript import sorter

ES6 and TypeScript import sorter

nikolazaric

|
11,216 installs
| (1) | Free
An opinionated ES6 and TypeScript import sorter.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ES6 and TypeScript import sorter (BETA)

An opinionated ES6 and TypeScript import sorter.

Features

Sort import statements:

  • by invoking VSCode's command palette and searching for Sort imports command.
  • on save, by enabling Es6tssort: Sort On Save setting
  • by using CLI (i.e. on the CI). Type ./node_modules/.bin/import-sorter --help in terminal to see the list of all available options. Example usage: ./node_modules/.bin/import-sorter --directory path/to/recursevly/sort/imports/in --dry-run

Example of sorting imports

Known Issues

No known issues.

Future plans

  • Read configuration from eslint.json and tslint.json file
  • Sort the importing modules as part of the import statement itself
  • CLI documentation

For a full list of planned features, see the library repo

Release Notes

See CHANGELOG.md

Contributing

See CONTRIBUTING.md

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