OPERATING SYSTEMSOS Linux

Run C/C++ Code Visual Studio Code On Ubuntu



Run C/C++ Code Visual Studio Code On Ubuntu….

{
“version”: “2.0.0”,
“tasks”: [
{
“label”: “debug”,
“type”: “shell”,
“command”: “”,
“args”: [“g++”,”-g”, “${relativeFile}”, “-o”,”a.exe”]
},
{
“label”: “Compile and run”,
“type”: “shell”,
“command”: “”,
“args”: [
“g++”,”-g”, “${relativeFile}”, “-o”,”${fileBasenameNoExtension}.out”, “&&”, “clear” , “&&” , “./${fileBasenameNoExtension}.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
}
}
},

]
}

source
ubuntu

Leave a Reply

Your email address will not be published. Required fields are marked *