{
"tasks": [
"type": "cppbuild",
"label": "Compile",//可以随意更改,保证与launch.json的preLaunchTask相同
"command": "g++",
"args": [
"${fileDirname}\\*.cpp",//编译所有文件,根据自己需要更改
"-g",//一定要加这个参数,不然没法加断点
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe"
],
"options": {
"cwd": "C:/Project/mingw64/bin"//自己的编译器路径,自行修改
},
"problemMatcher": [
"$gcc"
"group": "build",
"detail": "编译器: C:/Project/mingw64/bin/g++.exe"
}
"version": "2.0.0"