{ "version": "2.0.0", "tasks": [ { "label": "Compile", "command": "g++", "args": [ "${file}", "-o", "${workspaceFolder}\\debug\\${fileBasenameNoExtension}.exe", "-g", "-Wall", "-static-libgcc", "-fexec-charset=utf-8" ], "type": "process", "group": { "kind": "build", "isDefault": true }, "presentation": { "echo": true, "reveal": "always", "focus": false, "panel": "shared" }, "problemMatcher": "$gcc" }, { "type": "cppbuild", "label": "C/C++: g++.exe 生成活动文件", "command": "D:\\mingw64\\bin\\g++.exe", "args": [ "-fdiagnostics-color=always", "-g", "${file}", "-o", "${fileDirname}\\${fileBasenameNoExtension}.exe" ], "options": { "cwd": "${fileDirname}" }, "problemMatcher": [ "$gcc" ], "group": "build", "detail": "调试器生成的任务。" }, { "type": "cppbuild", "label": "C/C++: gcc.exe 生成活动文件", "command": "D:\\mingw64\\bin\\gcc.exe", "args": [ "-fdiagnostics-color=always", "-g", "${file}", "-o", "${fileDirname}\\${fileBasenameNoExtension}.exe" ], "options": { "cwd": "${fileDirname}" }, "problemMatcher": [ "$gcc" ], "group": "build", "detail": "调试器生成的任务。" } ] }