Comment code in Pycharm with a German keyboard

Keyboard shortcuts are completely customizable in PyCharm

Following is an instruction given in PyCharm2017.1 Help:

  1. Open the Settings dialog box, and click Keymap.

  2. Select one of the pre-configured Keymaps, which you want to use as the base for the new one, and click Copy. Accept the default name, or change it as required.

  3. In the content pane of actions, select the desired action.

  4. Configure keyboard shortcuts. To do that, follow these steps:

  5. Click /help/img/idea/2017.1/properties.gif on the toolbar, or right-click the selected action, and choose Add Keyboard Shortcut. Enter Keyboard Shortcut dialog box opens.

  6. Press the keys to be used as shortcuts. The keystrokes are immediately reflected in the First Stroke field. Optionally, select the check box next to Second Stroke and press keys to be used as alternative keyboard shortcuts. As you press the keys, the Preview field displays the suggested combination of keystrokes, and the Conflicts field displays warnings, if some of the keystrokes are already assigned to the other actions.

Note: Click OK with the mouse pointer to create a shortcut and bind it with an action.


Choose another working-for-you shortcut for that action at Settings (Preferences on Mac) | Keymap (just use search field to find the right action).

Other than that: watch these tickets (star/vote/comment) to get notified on progress.

  • https://youtrack.jetbrains.com/issue/IDEA-16116
  • https://youtrack.jetbrains.com/issue/IDEA-63779

If you have a numberpad on your keyboard you can use Ctrl and the division sign on your numpad.

Found this in the Bugreports pointed out by LazyOne