Skip to content
| Marketplace
Sign in
Visual Studio Code>Linters>Format ImportNew to Visual Studio Code? Get it now.
Format Import

Format Import

ardor-zhang

|
351 installs
| (1) | Free
format import
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

format-import

Beta

Plugin's page on Visual Studio Marketplace

This extension is used to check the import method of non best practices in the project, give error prompts and provide one click repair function (Under development)

Click to view the 'import' of best practices (Under development)

Usage

  1. Install extension at vscode Search format import and install in the marketplace.

  2. Add import.json in the root directory of the project Users can customize and configure some special fields for this extension via import.json. If there are no special configuration items, this file is not required.

Configuration reference

{
  "alias": {
    "@": "src"
  },
  "whiteDirName": ["effects"]
}
field description type options
alias path abbreviation object -
whiteDirName directory whitelist during import string
  1. Get the path of all documents with 'import' problem
  • press: Ctrl/Command+Shift+p
  • input: format-import.checkAll

Commands

Command description
format-import.checkAll check all 'problem'
format-import.rules displays the best practices document for import
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft