Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>ImportsSorterNew to Visual Studio Code? Get it now.
ImportsSorter

ImportsSorter

Pranay Patil

|
96 installs
| (0) | Free
It sorts the imports (read the name!)
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ImportsSorter README

Features

It sorts the imports on the basis of import's source path.

For example:

import * as React from "react";  
import * as Constants from "Constants";

above imports would be sorted to:

import * as Constants from "Constants";  
import * as React from "react";

Tip: Only works with imports starting with the keyword import and all the import statements must be grouped together

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