{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "C++ Build and Run",
"type": "shell",
"command": "g++",
"args": [
"-std=c++11",
"-O2",
"-Wall",
"-o",
"${workspaceFolder}/${fileBasenameNoExtension}",
"${file}",
"&&",
"${workspaceFolder}/${fileBasenameNoExtension}"
],
"isShellCommand": true,
"showOutput": "always",
"problemMatcher": {
"owner": "cpp",
"fileLocation": [
"relative",
"${workspaceRoot}"
],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
}
}
],
}
Comments