When I open the project on vscode
, I want it to start running in debug mode.
I have a lunch configuration in the launch.json
file which starts the project in debug mode when I hit "F5".
In addition, I have a vscode
task with the "runOptions": {"runOn":"folderOpen"}
option.
the problem is: as much as I can tell, tasks can only run commands or other tasks.
is it possible to configure a command to run a specific "launch from the launch.json
?
You can use the extension Launch Configs
In the extension settings (settings.json
) you setup a command to start a launch config
"launches": {
"StartLaunch": "Start Launch (Project Folder)"
}
In you tasks.json
call this task with a variable ${command:commandID}
somewhere in the task strings.
${command:launches.StartLaunch}
You can use a dummy shell echo task
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