Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>impsorter - Arrange importsNew to Visual Studio Code? Get it now.
impsorter - Arrange imports

impsorter - Arrange imports

erhise

|
909 installs
| (2) | Free
Help you sort your import statements
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

impsorter

You might think the structure of your imports are important (no pun intended). This is an extension to help you sort your import statement in an easy convenient way.

Features

How to use

vs-impsorter-extension supports a number of commands for sorting import statements; these are acessible via the command menu (<kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd>) and may be bound to keyboard shortcuts in the normal way.

Available commands

  • "Sort Imports: Line import"
  • "Sort Imports: One import per line"
  • "Sort Imports: Maximum inputs per line"
  • "Sort Imports: Limit on max width"

Change default settings

Open up settings.json and change default settings

impsorter.defaultTabWidth: 4
impsorter.trailingComma: false
impsorter.inputPerLine: 4
impsorter.lineMaxWidth: 80

Sort imports on one line selection

sortLine

Sort imports on regard of maximum line width

sortLines

Release Notes

  • Latest changes are referenced in the changelog.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft