forked from jspw/VS-Code-Config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tasks.json
54 lines (54 loc) · 1.19 KB
/
tasks.json
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
43
44
45
46
47
48
49
50
51
52
53
54
//Author : 5hfT
//data:11th Feb,2020
//Task:shortcut to run a cpp file which will take input and show output of the programme automatically with programme runtime status such as memory comsume and execution time
{
"version": "2.0.0",
"tasks": [
{
"label": "Compile and run",
"type": "shell",
"command": "",
"args": [
"cp",
"${file}",
"${workspaceFolder}",
"&&",
"g++",
"${fileBasename}",
"-o",
"test.out",
"&&",
"./test.out",
"<",
"input.txt",
">",
"output.txt",
"&&",
"rm",
"*out",
"&&",
"rm",
"${fileBasename}"
],
"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
}
}
}
]
}