src2020/.vscode/tasks.json

52 lines
1.4 KiB
JSON
Raw Normal View History

2020-03-07 13:43:39 +08:00
{
"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"
}