Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Line-Comment shortcut on german keyboards

What is the equivalent of CTRL + SLASH on german keyboards?

I know that US-Layouts got that / where the german _ is, since I used an US-Layout for some time. But CTRL + _ just collapses a method.

like image 390
codepleb Avatar asked Dec 27 '15 09:12

codepleb


People also ask

How do you comment on a German keyboard?

just asking how to comment a block of code using a german keyboard, since commenting a block is "cmd+/" and on a german keyboard the "/" is typed using "shift+7".

What is the shortcut for commenting on a line?

If you select a block of code and use the key sequence Ctrl+K+C, you'll comment out the section of code. Ctrl+K+U will uncomment the code.

What is Ctrl on German keyboard?

Most of the other abbreviations are replaced by German abbreviations (thus e.g. "Ctrl" is translated to its German equivalent "Strg", for Steuerung). "Esc" remains as such.


2 Answers

Just use the slash (Ctrl + /) on the numpad.

like image 166
dbaer Avatar answered Oct 27 '22 02:10

dbaer


I found a solution for using the desired shortcut on Intellij Idea.

You just need to:
- click Ctrl+Alt+S to open the settings dialog box, - choose "Keymap" from the left menu
- then search for keyword "comment".
- right click on "Comment with Block comment" and select add Keyboar Shortcuts.
- Type the shortcut you want to use and click ok.
For more details : https://www.jetbrains.com/help/idea/2016.3/configuring-keyboard-shortcuts.html

like image 30
velocity Avatar answered Oct 27 '22 01:10

velocity