-
Notifications
You must be signed in to change notification settings - Fork 29.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
default run task #70118
Comments
(Experimental duplicate detection) |
@tobdub, are you referring to the configurations in launch.json which run when you use F5 or click the green arrow in the debug viewlet? |
@alexr00, I'm talking about tasks under Shift+Ctrl+P -> Tasks: Run task |
There's a |
The specific case I have at the moment is a Rust project where I want to trigger the cargo run task with a default keybinding in the same way I can trigger cargo build using the default build task. |
@weinand do you think a feature request like this makes more sense as a type of task, or as a debugger-less launch.json configuration? |
@alexr00 IMO this feature makes more sense as a task because typical projects already have some VS Code independent "run" script (or "run" makefile target) that they want to surface painlessly as a VS Code "Run" task (similar to "Build"). So there is no need to implement a "Run" task; it is only necessary to wire it up as a standard "Run" task. The "Debug: Start Without Debugging" is very VS Code specific and requires an existing launch configuration (and a debugger extension that actually supports to launch a debug target without debugging). Since this is much more effort and the result is VS Code specific, most user are probably not interested in this. |
@weinand that sounds reasonable. |
I believe this can be achieved with a change in the settings.json file similar to what I've done below:
|
It would be nice if there was a default run task (build + execute), similar to the existing default build and test tasks.
The text was updated successfully, but these errors were encountered: