{ "tasks": [ { "type": "shell", "label": "Build", "command": "${env:GCC_PATH}/g++.exe", "args": [ "-g", "${file}", "-o", "${fileDirname}/${fileBasenameNoExtension}.exe" ], "options": { "cwd": "${env:GCC_PATH}" }, "problemMatcher": { "owner": "cpp", "fileLocation": [ "relative", "${workspaceRoot}" ], //"fileLocation": "absolute", "pattern": { "regexp": "^(.*):(\\d+):(\\d+):\\s+(error):\\s+(.*)$", "file": 1, "line": 2, "column": 3, "severity": 4, "message": 5 } }, "group": { "kind": "build", "isDefault": true } }, { "label": "Build & run C++ project", "type": "shell", "group": { "kind": "test", "isDefault": true }, "command": "${workspaceRoot}/run.bat", "args": [ "${fileDirname}/${fileBasenameNoExtension}.exe" ], "dependsOn":["Build"] } ], "version": "2.0.0" }