TypeScript Import Sorter installs statistics
By Michael · VS Code Marketplace · Formatters
Extension sorts TypeScript imports according to the configuration provided. The configuration defaults follow ESLint sort-imports rule
TypeScript Import Sorter has 258,061 recorded installs on VS Code Marketplace, an increase of 0.4% over the past 30 days, ranking #1296 of 2,515 tracked listings.
Rating: 4.97 / 5 from 32 ratings
About TypeScript Import Sorter
import-sorter
Extension which sorts TypeScript imports according to the configuration provided. The configuration defaults follow ESLint sort-imports rules. Configuration supports regex functions to set sorting priority and rules. The extension can work with prettier as long as the configuration settings of both are aligned.
Examples
Different sort types in file:

Deep directory sort:

Sort on before safe (off by default):

Prettier integration:

Features
For now sorting supports only typescript language.
Command
To run the sorter use Sort Imports command from the Command Palette (Ctrl+Shift+P).
Alternatively, you can set importSorter.generalConfiguration.sortOnBeforeSave to true, which would
trigger sorting before each save operation.
Also you could use/redefine keybindings. The default one is ctrl + alt + o.
You can also do the sort in deep on the directory level. The feature is accessible from the resource explorer. To run right click and select: Sort imports (Directory deep).
!!!Do make sure that the project is managed by some version control system before performing the global source code sort. The sorter will sort and rewrite the sources without any prompt for the action confirmation.
Extension Settings
an example of default configuration is provided bellow. For available options have a look at vs code settings(it should show available settings when you search for importSorter)
// Default file configuration name
"importSorter.generalConfiguration.configurationFilePath": "./import-sorter.json",
// Excludes sorting for files which match given regex expression. Regex considers the whole file path. The file path separator is normalized to /
"importSorter.generalConfiguration.exclude": [],
// Enables sort before each save of the document
"importSorter.generalConfiguration.sortOnBeforeSave": false,
// If true then the import string has a semicolon at the end, otherwise it will not be appended. Default is true
"importSorter.importStringConfiguration.hasSemicolon": true,
// The count of units before import is new-lined
"importSorter.importStringConfiguration.maximumNumberOfImportExpressionsPerLine.count": 100,
// The type of length restriction, before import is moved to a new line
"importSorter.importStringConfiguration.maximumNumberOfImportExpressionsPerLine.type": "maxLineLength",
// The number of new lines after the last sorted import
"importSorter.importStringConfiguration.numberOfEmptyLinesAfterAllImports": 1,
// The path quotes
"importSorter.importStringConfiguration.quoteMark": "single",
// Number of spaces after comma
"importSorter.importStringConfiguration.spacingPerImportExpression.afterComma": 1,
// Number of spaces after {
"importSorter.importStringConfiguration.spacingPerImportExpression.afterStartingBracket": 1,
// Number of spaces before comma
"importSorter.importStringConfiguration.spacingPerImportExpression.beforeComma": 0,
// Number of spaces before }
"importSorter.importStringConfiguration.spacingPerImportExpression.beforeEndingBracket": 1,
// Left number of spaces for the new lined imports. If tabType is set to 'tab', then the configuration defines the size of the tab in number of spaces
"importSorter.importStringConfiguration.tabSize": 4,
// Defines the character which will be printed on each new lined import expression
"importSorter.importStringConfiguration.tabType": "space",
// If always/multiLine then adds a trailing comma at the end of the imports for 'single and multi' and 'multi-line' imports respectively. Default is none therefore no trailing comma
"importSorter.importStringConfiguration.trailingComma": "none",
// The default number of empty lines after any group. This has lesser priority then empty lines in rules
"importSorter.sortConfiguration.customOrderingRules.defaultNumberOfEmptyLinesAfterGroup": 1,
// The default order level of everything which is not included into rules
"importSorter.sortConfiguration.customOrderingRules.defaultOrderLevel": 20,
// Disable sorting of path on the default group
"importSorter.sortConfiguration.customOrderingRules.disableDefaultOrderSort": false,
// The default order level of everything which is not included into rules
"importSorter.sortConfiguration.customOrderingRules.rules": [
{
"type": "importMember",
"regex": "^$",
"orderLevel": 10,
"disableSort": true
},
{
"regex": "^[@]",
"orderLevel": 30
},
{
"regex": "^[.]",
"orderLevel": 40
}
],
// Sort Direction of names in curly brackets
"importSorter.sortConfiguration.importMembers.direction": "asc",
// Sort Order of names in curly brackets
"importSorter.sortConfiguration.importMembers.order": "caseInsensitive",
// Sort Direction of paths
"importSorter.sortConfiguration.importPaths.direction": "asc",
// Sort Order of paths
"importSorter.sortConfiguration.importPaths.order": "caseInsensitive",
// Combine imports with the same path
"importSorter.sortConfiguration.joinImportPaths": true
// Removes not used imports where we do not have explicit side effects
"importSorter.sortConfiguration.removeUnusedImports": false…
Description from the VS Code Marketplace listing.
- imports
- javascript
- javascriptreact
- keybindings
- linters
- order
- sort
- sort imports
- Typescript
- typescriptreact
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Ratings over time
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Installs on a linear scale. Placement is projected from installs, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (50)Similar VS Code Marketplace Formatters plugins
All 20 TypeScript Import Sorter alternativesData source
Install counts, average rating, and rating counts come from the public Visual Studio Marketplace gallery API. Installs are cumulative and exclude updates.
Listing: https://marketplace.visualstudio.com/items?itemName=mike-co.import-sorter. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.