Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Imports SorterNew to Visual Studio Code? Get it now.

Imports Sorter

Guilherme Moura

|
76 installs
| (1) | Free
Extension for Visual Studio Code that helps organize imports by sorting them based on their source folder.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

:package: Imports Sorter

Extension for Visual Studio Code that helps organize imports by sorting them based on their source folder.

Classification rules

The extension uses a block-based classification system. In order, the blocks are:

Core

Block dedicated to the core libraries of the project.

Examples: react, vue, react native.

Libraries

Block dedicated to third-party libraries.

Examples: redux, vuex, enzyme, styled-components.

General

Block dedicated to the general (non-component) imports of the project.

Examples: services, constants, helpers.

Global components

Block dedicated to imported global components, which are acquired from the project root.

Examples: ~/components, @/components.

Local components

Block dedicated to imported local components, which are acquired from a folder at the same level as the requesting file.

Example: ./components.

Overview

License

MIT

Copyright (c) Guilherme Moura

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft