tuankiet65

Untitled

Sep 19th, 2018
336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 1.18 KB | None | 0 0
  1. {
  2.     // See https://go.microsoft.com/fwlink/?LinkId=733558
  3.     // for the documentation about the tasks.json format
  4.     "version": "2.0.0",
  5.     "tasks": [
  6.         {
  7.             "label": "C++ Build and Run",
  8.             "type": "shell",
  9.             "command": "g++",
  10.             "args": [
  11.                 "-std=c++11",
  12.                 "-O2",
  13.                 "-Wall",
  14.                 "-o",
  15.                 "${workspaceFolder}/${fileBasenameNoExtension}",
  16.                 "${file}",
  17.                 "&&",
  18.                 "${workspaceFolder}/${fileBasenameNoExtension}"
  19.             ],
  20.             "isShellCommand": true,
  21.             "showOutput": "always",
  22.             "problemMatcher": {
  23.                 "owner": "cpp",
  24.                 "fileLocation": [
  25.                     "relative",
  26.                     "${workspaceRoot}"
  27.                 ],
  28.                 "pattern": {
  29.                     "regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
  30.                     "file": 1,
  31.                     "line": 2,
  32.                     "column": 3,
  33.                     "severity": 4,
  34.                     "message": 5
  35.                 }
  36.             }
  37.         }
  38.     ],
  39. }
Advertisement
Add Comment
Please, Sign In to add comment