Open github-day opened 2 weeks ago
here is a workaround by change the keybinding : open keybindings.json(see https://code.visualstudio.com/docs/getstarted/keybindings#_advanced-customization) and add:
[
{
"key": "f5",
"command": "runCommands",
"args": {
"commands": [
"workbench.action.tasks.build",
"workbench.action.debug.start"
]
}
},
{
"key": "f5",
"command": "-workbench.action.debug.start",
"when": "debuggersAvailable && debugState == 'inactive'"
},
]
if there is a direct way to work out plz let me know
Environment
Bug Summary and Steps to Reproduce
there are source files .c, .cpp now i want to compile them using with gcc/g++ respectively and i have figured out that according to https://code.visualstudio.com/updates/v1_68#_tasks vscode is able to choose different tasks as default task based on different extend name. and i think the default task should be the value of variable ${defaultBuildTask} in launch.json but not really whether there is an convenient way to let launch.json pick the proper task?
Steps to Reproduce:
Debugger Configurations
Debugger Logs
Other Extensions
No response
Additional Information
No response