Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

vscode add all missing imports shortcut

//This also allows you to set up a keybinding for Add all missing imports:
{
    "key": "ctrl+shift+i",
    "command": "editor.action.sourceAction",
    "args": {
        "kind": "source.addMissingImports",
        "apply": "first"
    }
}

// Or even enable Add all missing imports on save:

"editor.codeActionsOnSave": [
    "source.addMissingImports"
]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #vscode #add #missing #imports #shortcut
ADD COMMENT
Topic
Name
1+7 =