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

ImportJS

Devin Abbott

|
2,561 installs
| (1) | Free
VSCode extension for ImportJS, a tool that helps you import javascript dependencies by automatically injecting import statements at the top of the file.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VS Code ImportJS extension

This is the VS Code extension for ImportJS.

Installing

  1. Install import-js globally:

    npm install --global import-js
    
  2. Configure ImportJS for your project

  3. Open the root directory of your project (File -> Open…)

  4. Import a file!

Default keybindings

By default, vscode-import-js attempts to set up the following keybindings:

Mapping Action Description
Cmd+Shift+j Import word Import the module for the variable under the cursor.
Cmd+Shift+i Fix imports Import any missing modules and remove any modules that are not used.
Cmd+Shift+k Go to word Go to the module of the variable under the cursor.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft