'How to disable menu shortcut in Spyder?
I would like to put alt+C as "comment" shortcut but it's conflicting with the alt+C shortcut that open the "Source" menu. This shortcut cannot be found in the shortcut options (Tools/Preferences/Keyboard shortcuts). It is possible to disable these menu shortcut ? Thanks
Solution 1:[1]
(Spyder maintainer here) Sorry, that's not possible. That shortcut is necessary to help people with disabilities navigate our interface with the keyboard only.
Solution 2:[2]
Agreed with the maintainer. Better to leave like that. Nonetheless, here is short set of (personal) redefinition of shortcuts along with the "Functions"
New keybord shortcuts for runing scripts within Spyder IDE:
- Run file default --> F5 new --> F1
- Run current cell default --> Ctrl+Return new --> F2
- Run current cell (and advance) default --> shift + Return new --> shift + F2
- Run selection or current line default --> F9 new --> F3
Redifinig shortcuts to avoid clashes: 5) Spyder documentation default --> F1 new --> F4
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Carlos Cordoba |
Solution 2 | MarcosMoro |