VSCode键盘快捷键,用于特定任务

时间:2020-03-06 23:15:27

标签: visual-studio-code vscode-tasks

此键盘快捷键:

[
  {
    "key": "ctrl+r",
    "command": "workbench.action.tasks.runTask",
    "args": "Hello1"
  },
]

打开所有任务的菜单,而不是立即运行Hello1任务

enter image description here

tasks.json

{
  "version": "2.0.0",
  "tasks": [
    {
      "label": "Hello1",
      "type": "shell",
      "command": "echo Hello1",
      "problemMatcher": []
    },
    {
      "label": "Hello2",
      "type": "shell",
      "command": "echo Hello2",
      "problemMatcher": []
    },
  ]
}

1 个答案:

答案 0 :(得分:1)

另一个人将此问题报告给VS Code。 https://github.com/microsoft/vscode/issues/90344

1.43.0已经修复它。