tuankiet65 icon

Untitled

tuankiet65 | PRO | 09/19/18 02:57:50 PM UTC | 0 ⭐ | 284 👁️ | Never ⏰ | []
JSON |

1.18 KB

|

None

|

0 👍

/

0 👎

{
    // 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