tasks.json
作者:互联网
你猜猜这玩意怎么用?
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "g++",
"type": "shell",
"command": "clear && g++ ${file} -o cpp -O2 -DDEBUG -fsanitize=undefined,address -Wno-unused-result && ulimit -s 128000 && time ./cpp < in.in > out.out",
"problemMatcher": {
"owner": "cpp",
"fileLocation": [
"relative",
"./"
],
"pattern": {
"regexp": "^(.*):([0-9]+):([0-9]+): (.*): (.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
},
"presentation": {
"echo": true,
"reveal": "never",
"focus": true,
"panel": "shared",
"showReuseMessage": true,
"clear": false
},
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "no fsan",
"type": "shell",
"command": "clear && g++ ${file} -o cpp -O2 -DDEBUG -Wno-unused-result && ulimit -s 128000 && time ./cpp < in.in > out.out",
"problemMatcher": {
"owner": "cpp",
"fileLocation": [
"relative",
"./"
],
"pattern": {
"regexp": "^(.*):([0-9]+):([0-9]+): (.*): (.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
},
"presentation": {
"echo": true,
"reveal": "never",
"focus": true,
"panel": "shared",
"showReuseMessage": true,
"clear": false
}
},
{
"label": "py",
"type": "shell",
"command": "clear && time python3 ${file} < in.in > out.out",
"problemMatcher": {
"owner": "cpp",
"fileLocation": [
"relative",
"./"
],
"pattern": {
"regexp": "^(.*):([0-9]+):([0-9]+): (.*): (.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
},
"presentation": {
"echo": true,
"reveal": "never",
"focus": true,
"panel": "shared",
"showReuseMessage": true,
"clear": false
},
"group": "build"
}
]
}
标签:tasks,&&,clear,json,file,cpp,true,out 来源: https://www.cnblogs.com/eafoo/p/16694153.html