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

Feature Request: context sensitive keyboard shortcuts (e.g. editor: F5 starts debugger -> debugging: F5 continues to next breakpoint) #23446

Closed
afkrause opened this issue Jan 10, 2025 · 1 comment

Comments

@afkrause
Copy link

afkrause commented Jan 10, 2025

It would be nice to have context dependent keyboard shortcuts.

Example:

  1. i am in editing mode. i want to press F5 to run file in debug.
  2. i am now in debugging mode. i press F5 again to continue to the next breakpoint

this would be similiar to the way visual studio behaves, but is currently not possible with Spyder. if two different actions have the same shortcut, then nothing happens anymore.

https://learn.microsoft.com/en-us/visualstudio/ide/default-keyboard-shortcuts-in-visual-studio?view=vs-2022

Also, it would be nice if a user defined shortcut scheme could be exported / imported.

@ccordoba12
Copy link
Member

Hey @afkrause, thanks for reporting. Perhaps this is simpler to get accustomed to in Visual Studio because it has a single evaluation console (if I'm not mistaken). But in Spyder you can have as many consoles as you want, local and remote, and in different states too (i.e. debugging vs running code). In addition, you can easily can run code while debugging by pressing F5. So, I think it'd be a nightmare to use (and implement) the kind of shortcuts you propose, sorry.

But thanks for your interest in improving Spyder!

@ccordoba12 ccordoba12 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 13, 2025
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