0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-02 19:36:30 +00:00
OI-codes/.vscode/tasks.json

47 lines
1.4 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
// 编译参数 ggc -g ${file} -o ${fileDirname}${fileBasenameNoExtension}.exe
"windows": {
"command": "g++",
"args": [
"-g",
"\"${file}\"",
"-o",
"\"${fileDirname}\\${fileBasenameNoExtension}.exe\"",
"--save-temps"
]
},
// 控制台输出的错误信息
"problemMatcher": {
"owner": "cpp",
"fileLocation": [
"relative",
"." // ${workspaceFolder}
],
"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" // 控制面板是否在任务中共享面板shared=共享new=新面板
}
}
]
}