网上大部分内容都是调用shell指令,我在google上找到了调用命令面板的方法
以我的为例,主要是command那里的写法${command:xxxxx}
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "${command:cmake.build}",
"args": [],
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {},
"problemMatcher": []
}
]
}