Skip to content
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

Add keybindings for Run and Debug #81

Closed
robbyki opened this issue Feb 13, 2020 · 3 comments
Closed

Add keybindings for Run and Debug #81

robbyki opened this issue Feb 13, 2020 · 3 comments

Comments

@robbyki
Copy link

robbyki commented Feb 13, 2020

Is your feature request related to a problem? Please describe.
Currently can only initiate the run | debug commands using the links that get created directly above the application. A bit of a pain to always have to scroll up and use the mouse to launch run or debug.

Describe the solution you'd like
It would be great to be able to add keybindings to the feature.

Search terms:
keyboard run debug keybinding

@robbyki robbyki changed the title Add keybindings for run | debug commands Add keybindings for run and debug Feb 13, 2020
@robbyki robbyki changed the title Add keybindings for run and debug Add keybindings for Run and Debug Feb 13, 2020
@tgodzik
Copy link
Contributor

tgodzik commented Feb 13, 2020

Thanks for reporting, I think this is closely related to #72 but not necessarily the same. I think this would be super useful to have.

@tgodzik
Copy link
Contributor

tgodzik commented Jan 28, 2022

You should be able to run the current file using F5 in Vs Code currently (if no launch json is specified, but it can also be invoked manually), it will make you choose a main class if there is more than one. I think that's the best experience we can offer here. One improvement would be to also try to figure out which code lense are closer to the code lense, but I think choosing the main class to run is rather a small price.

@tgodzik
Copy link
Contributor

tgodzik commented Jan 28, 2022

Also, you can invoke a command Run main class or tests in the current file in VS Code starting with scalameta/metals-vscode#860 that should work perfectly well for the use case. This can be bound to a shortcut and used in other editors also.

@tgodzik tgodzik closed this as completed Jan 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants