Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Comment code in Pycharm with a German keyboard

Does anybody using a German keyboard have found a solution to this? Ctrl+/ is not possible since it is necessary to push shift+7 to get the slash. But when I do Ctrl+shift+7 I get a bookmark called 7 on that line. Commenting code is very time wasting like that, especially when commenting xml lines.

like image 539
Mehdi Avatar asked Aug 19 '15 09:08

Mehdi


People also ask

How do you comment multiple lines on a German Pycharm keyboard?

The "Code" -> "Comment with Line Comment" shortcut is Ctrl+Slash, which is Ctrl+Shift+7.

How do you comment code in Pycharm?

To comment a line of code, place the caret at the appropriate line and press Ctrl+/ . Press Ctrl+/ again on the same line to uncomment it. To move a line up or down, press Alt+Shift+Up or Alt+Shift+Down respectively.

How do you make a slash on a German keyboard?

The answer is: If you're using a german keyboard with an integrated numpad you just need to press ctrl + "the numpad division key" to generate a "/". In this way it is possible to type in "/" without pressing the shift-key.

How do I set keyboard shortcuts in Pycharm?

Add a keyboard shortcutOn the Keymap page of the Settings/Preferences dialog Ctrl+Alt+S , right-click an action and select Add Keyboard Shortcut. In the Keyboard Shortcut dialog, press the necessary key combination.


Video Answer


2 Answers

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

like image 164
Andreas Wilkes Avatar answered Sep 21 '22 18:09

Andreas Wilkes


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
like image 25
LazyOne Avatar answered Sep 19 '22 18:09

LazyOne