how to run cpp using gcc vscode

Solutions on MaxInterview for how to run cpp using gcc vscode by the best coders in the world

showing results for - "how to run cpp using gcc vscode"
Enrico
16 Jul 2020
1{
2    "version": "0.1.0",
3    "command": "make",
4    "isShellCommand": true,
5    "tasks": [
6        {
7            "taskName": "Makefile",
8
9            // Make this the default build command.
10            "isBuildCommand": true,
11
12            // Show the output window only if unrecognized errors occur.
13            "showOutput": "always",
14
15            // Pass 'all' as the build target
16            "args": ["all"],
17
18            // Use the standard less compilation problem matcher.
19            "problemMatcher": {
20                "owner": "cpp",
21                "fileLocation": ["relative", "${workspaceRoot}"],
22                "pattern": {
23                    "regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
24                    "file": 1,
25                    "line": 2,
26                    "column": 3,
27                    "severity": 4,
28                    "message": 5
29                }
30            }
31        }
32    ]
33}
34