此键盘快捷键:
[
{
"key": "ctrl+r",
"command": "workbench.action.tasks.runTask",
"args": "Hello1"
},
]
打开所有任务的菜单,而不是立即运行Hello1任务
tasks.json
{
"version": "2.0.0",
"tasks": [
{
"label": "Hello1",
"type": "shell",
"command": "echo Hello1",
"problemMatcher": []
},
{
"label": "Hello2",
"type": "shell",
"command": "echo Hello2",
"problemMatcher": []
},
]
}
答案 0 :(得分:1)
另一个人将此问题报告给VS Code。 https://github.com/microsoft/vscode/issues/90344
1.43.0已经修复它。