2026-07-14 23:20:12 +08:00
|
|
|
{
|
|
|
|
|
"version": "2.0.0",
|
|
|
|
|
"tasks": [
|
|
|
|
|
{
|
|
|
|
|
"type": "cppbuild",
|
|
|
|
|
"label": "msvc2022 调试编译",
|
|
|
|
|
|
|
|
|
|
"command": "cl.exe",
|
|
|
|
|
"args": [
|
|
|
|
|
"/Zi",
|
|
|
|
|
"/EHsc",
|
|
|
|
|
"/nologo",
|
|
|
|
|
"/Fe${fileDirname}\\${fileBasenameNoExtension}.exe",
|
|
|
|
|
"${file}"
|
|
|
|
|
],
|
|
|
|
|
"options": {
|
2026-07-20 11:46:45 +08:00
|
|
|
"cwd": "${fileDirname}",
|
2026-07-14 23:20:12 +08:00
|
|
|
},
|
|
|
|
|
"problemMatcher": [ // 错误信息匹配器,有$msCompiler、$gcc 选项
|
|
|
|
|
"$msCompile" // 使用msvc编辑器的匹配器,
|
2026-07-20 11:46:45 +08:00
|
|
|
|
2026-07-14 23:20:12 +08:00
|
|
|
],
|
|
|
|
|
"group": {
|
|
|
|
|
"kind": "build",
|
|
|
|
|
"isDefault": false,
|
|
|
|
|
},
|
|
|
|
|
"detail": "编译器: cl.exe"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type":"cppbuild",
|
|
|
|
|
"label": "msvc2022 生产编译",
|
|
|
|
|
"command": "cl.exe",
|
|
|
|
|
"args": [
|
|
|
|
|
"/EHsc",
|
|
|
|
|
"/nologo",
|
|
|
|
|
"/Fe${fileDirname}\\${fileBasenameNoExtension}.exe",
|
|
|
|
|
"${file}"
|
|
|
|
|
],
|
|
|
|
|
"options": {
|
|
|
|
|
"cwd": "${fileDirname}"
|
|
|
|
|
}
|
2026-07-20 11:46:45 +08:00
|
|
|
|
2026-07-14 23:20:12 +08:00
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|