Tutorial-C/.vscode/tasks.json
2025-03-25 15:05:55 +08:00

43 lines
1.1 KiB
JSON

{
"tasks": [
{
"type": "cppbuild",
"label": "gcc编译C代码",
"command": "gcc.exe",
"args": [
"-g",
"${file}",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": "build",
"detail": "Mingw64 C编译"
},
{
"type": "cppbuild",
"label": "g++编译C++代码",
"command": "g++.exe",
"args": [
"-g",
"${file}",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": "build",
"detail": "Mingw64 C++编译"
},
],
"version": "2.0.0"
}