Vscode Version: 1.19.3
I was wondering if there was a way for one task to call another, like the "preLaunchtask" but for regular tasks.
The reason is because when I want debug my code, I need to recompile my executable to the latest version so I have the "preLaunchTask" call the CMakeTask which then needs to call make, to make my executable.
You can make it depends on another task. Example:
{
"label": "secondTask",
"type": "shell",
"command": "<Your second task's command here>",
"dependsOn": [
"firstTask"
]
},
{
"label": "firstTask",
"type": "shell",
"command": "<Your first task's command here>"
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With