pythoncommentsspydershortcutpersonalization

Change keyboard shortcut to comment out lines in Spyder


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!


Solution

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

    Tools > Preferences > Keyboard shortcuts

    and introduce the one you want to use.