5

I recently started using the Spyder IDE (Python 3.6) and I'm having some difficulties getting used to the keyboard shortcuts, which is complicated due to me using an azerty keyboard. The ctrl + 1 keyboard shortcut to comment out lines becomes ctrl + shift + 1 due to this (azerty keyboards only read numbers when holding the shift key). Therefore I was wondering if there was any way to change the keyboard shortcuts in Spyder.

Thank you!

Simon De Roo
  • 77
  • 1
  • 6

1 Answers1

8

(Spyder maintainer here) To change our shortcuts you need to go to

Tools > Preferences > Keyboard shortcuts

and introduce the one you want to use.

Carlos Cordoba
  • 33,273
  • 10
  • 95
  • 124
  • I see how to change shortcuts there, but is it possible to add new shortcuts? – Joe Nov 30 '22 at 14:59
  • Unfortunately, that's not possible. A shortcut needs to be declared in Spyder's source code and exposed in the Preferences entry I mentioned above so users can modify it. – Carlos Cordoba Nov 30 '22 at 23:57