VS Code ImportJS extension
June 6, 2017 · View on GitHub
This is the VS Code extension for ImportJS.
Installing
-
Install
import-jsglobally:npm install --global import-js -
Configure ImportJS for your project
-
Open the root directory of your project (File -> Open…)
-
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. |