Brian Low
Brian Low

Reputation: 11811

VSCode keyboard shortcut for specific task

This keyboard shortcut:

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

opens a menu of all tasks instead of immediately running the Hello1 task

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": []
    },
  ]
}

Upvotes: 4

Views: 3822

Answers (1)

ChangReily
ChangReily

Reputation: 11

This issue is reported to VS Code by another guy. https://github.com/microsoft/vscode/issues/90344

1.43.0 already fixed it.

Upvotes: 1

Related Questions