0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-24 09:28:49 +00:00
OI-codes/.vscode/tasks.json
2020-10-04 15:26:53 +08:00

73 lines
2.0 KiB
JSON

{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"windows": {
"command": "g++",
"args": [
"-g",
"\"${file}\"",
"-o",
"\"${fileDirname}\\${fileBasenameNoExtension}.exe\"",
"--save-temps"
]
},
"linux": {
"command": "/usr/bin/g++",
"args": [
"-g",
"\"${file}\"",
"-o",
"\"${fileDirname}/${fileBasenameNoExtension}.exe\"",
"--save-temps"
]
},
"problemMatcher": {
"owner": "cpp",
"fileLocation": [
"relative",
"."
],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
},
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared"
}
}
// ,
// {
// "type": "shell",
// "label": "C/C++: g++ build active file",
// "command": "/usr/bin/g++",
// "args": [
// "-g",
// "${file}",
// "-o",
// "${fileDirname}/${fileBasenameNoExtension}"
// ],
// "options": {
// "cwd": "${workspaceFolder}"
// },
// "problemMatcher": [
// "$gcc"
// ],
// "group": "build"
// }
]
}