2017-03-04 5 views
0

2つ以上のタスクに2つ以上のキーバインドを追加したいと思います。約5-10のように。VSCode複数の/多くのタスクとキーバインド

// Place your key bindings in this file to overwrite the defaults 
[ 
    { "key": "ctrl+alt+s", "command": "workbench.action.tasks.test" }, 
    { "key": "ctrl+alt+d", "command": "workbench.action.tasks.build" } 
] 


{ 
    // See https://go.microsoft.com/fwlink/?LinkId=733558 
    // for the documentation about the tasks.json format 
    "version": "0.1.0", 
    "command": "npm", 
    "isShellCommand": true, 
    "showOutput": "always", 
    "suppressTaskName": true, 
    "tasks": [ 
     { 
      "taskName": "npm start", 
      "isTestCommand": true, 
      "args": ["start"] 
     }, 
     { 
      "taskName": "npm dist", 
      "isBuildCommand": true, 
      "args": ["run", "dist"] 
     } 
    ] 
} 

どのようにあなたがより多くを追加することができます。

は今、私はこれを持っていますか?

答えて

1

vscode 1.10の更新版では、すべてのタスクにキーをバインドできるようになりました。 Hereはこれを説明するリリース文書です。

TSCという名前のタスクには、Ctrl + Hを結合し

{ 
    "key": "ctrl+h", 
    "command": "workbench.action.tasks.runTask", 
    "args": "tsc" 
} 

:あなたがすることができるリンクの例を1として

関連する問題