Skip to content

Instantly share code, notes, and snippets.

@dungwinux
Last active July 21, 2018 14:18
Show Gist options
  • Save dungwinux/0c9d7e2337f6e448f1e5cdad93a8accc to your computer and use it in GitHub Desktop.
Save dungwinux/0c9d7e2337f6e448f1e5cdad93a8accc to your computer and use it in GitHub Desktop.
VSCode C++ tasks script
{
"version": "2.0.0",
"tasks": [
{
"label": "Build C++17",
"group": "build",
"command": "g++",
"args": [
"-std=c++17",
"-O3",
"-Wall",
"-Wextra",
"-Wpedantic",
"${relativeFile}",
"-o",
"${fileBasenameNoExtension}"
],
"promptOnClose": false,
"problemMatcher": {
"owner": "cpp",
"fileLocation": [
"relative",
"${workspaceFolder}"
],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment