Note: The Task code is in the Description. Forgot to say so. My apologies
This Video will:
1. Show you how the code for the Master task
2. Give some information on how it works
The Code:
//Master Task
{
"label": "Build & Run",
"type": "shell",
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"reveal": "silent",
"panel": "shared"
},
"dependsOrder": "sequence",
"dependsOn": ["Build Regular Code ONLY Task", "Run Regular C++ Code in External Terminal"],
"detail": "Build + Run regular code in external Terminal."
},
{
"label": "Build Regular Code ONLY Task",
"type": "cppbuild",
"command": "C:\\AllCodingTools\\msys64\\ucrt64\\bin\\g++.exe",
"args": [
"-fdiagnostics-color=always",
"-g",
"${file}",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "Build Only regular code in external Terminal."
},
{
"label": "Run Regular C++ Code in External Terminal",
"type": "shell",
"command": "cmd",
"args": [
"/C",
"start",
"cmd",
"/K",
"${fileDirname}\\${fileBasenameNoExtension}.exe"
],
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"reveal": "always",
"panel": "shared"
},
}