2017-03-04 2 views
0

두 개 이상의 작업에 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" 
}