-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtasks.json
More file actions
42 lines (42 loc) · 954 Bytes
/
tasks.json
File metadata and controls
42 lines (42 loc) · 954 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//Task:shortcut to run a cpp file which will take input and show output of the programme automatically.
{
"version": "2.0.0",
"tasks": [
{
"label": "Compile and run",
"type": "shell",
"command": "clang++",
"args": [
"${relativeFile}",
"-std=c++14",
"-o",
"${fileBasenameNoExtension}.out",
"&&",
"./${fileBasenameNoExtension}.out",
"<",
"input.txt",
">",
"output.txt",
"&&",
"rm",
"*out"
],
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": {
"owner": "cpp",
"fileLocation": ["relative", "${workspaceRoot}"],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
}
}
]
}