I am trying to learn Python using PyCharm and my Swiss/German keyboard. The usual shortcut to comment some code (line or block) is ⌘ + / which should become ⇧ + ⌘ + 7 on a Swiss/German keyboard since one must press ⇧ + 7 to obtain the symbol /.
But here is the problem: Pressing ⇧ + ⌘ + 7 just opens the Help tab in the top bar on my Mac. Looking around to resolve this issue, I found two different advice that do not work:
- Some advise to change the shortcut for commenting in “PyCharm > Settings > Keymap.” After multiple tries, adding new custom shortcuts doesn’t change anything : either the shortcut already exists for something else, or I can add it but it doesn’t do anything. I have tried to add shortcuts like ⌘ + è or ⌘ + ¨ but somehow those shortcuts don’t do anything once I click
OK… - Some others advise to change keyboard and use a US one… This is ridiculous, there must be a more reasonable solution. Please help me !
By the way, in the list of keyword shortcuts, why are there two different Comment Actions namely “Comment with Line Comment” and “Comment with Block Comment?” Are they really different actions ? I don’t understand the difference.