📌  相关文章
📜  vscode 添加所有缺少的导入快捷方式 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:35.250000             🧑  作者: Mango

代码示例1
//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"
]