{ "version": "2.0.0", "runner": "terminal", "type": "shell", "echoCommand": true, "presentation": { "reveal": "always" }, "tasks": [ { "label": "save and compile for C++", "command": "g++", "args": [ "-g", "${fileDirname}/*.cpp", "-o", "${fileDirname}/bin/${fileBasenameNoExtension}" ], "group": "build", "problemMatcher": { "fileLocation": [ "relative", "${workspaceRoot}" ], "pattern": { "regexp": "^(.*):(\\d+):(\\d+):\\s+(warning error):\\s+(.*)$", "file": 1, "line": 2, "column": 3, "severity": 4, "message": 5 } } }, { "label": "save and compile for C", "command": "gcc", "args": [ "-g", "${fileDirname}/*.c", "-o", "${fileDirname}/bin/${fileBasenameNoExtension}" ], "group": "build", "problemMatcher": { "fileLocation": [ "relative", "${workspaceRoot}" ], "pattern": { "regexp": "^(.*):(\\d+):(\\d+):\\s+(warning error):\\s+(.*)$", "file": 1, "line": 2, "column": 3, "severity": 4, "message": 5 } } }, { "label": "execute", "command": "cmd", "group": "test", "args": [ "/C", "${fileDirname}\\bin\\${fileBasenameNoExtension}" ] }, { "type": "cppbuild", "label": "C/C++: gcc.exe 활성 파일 빌드", "command": "C:/mingw64/bin/gcc.exe", // main 다수 (테스트) "args": [ "-fdiagnostics-color=always", "-g", "${file}", "-o", "${fileDirname}\\bin\\${fileBasenameNoExtension}.exe", ], // // main 단일 프로젝트 // "args": [ // "-fdiagnostics-color=always", // "-g", // "${fileDirname}\\*.c", // "-o", // "${fileDirname}\\bin\\${fileBasenameNoExtension}.exe" // ], "options": { "cwd": "C:/mingw64/bin" }, "problemMatcher": [ "$gcc" ], "group": { "kind": "build", "isDefault": true }, "detail": "디버거에서 생성된 작업입니다." } ] }