IntelliJ IDEA Hotkey for comment does not work wit

2019-01-26 07:43发布

None of the hotkeys (Ctrl+Slash or Ctrl+Divide, Ctrl+Shift+Slash or Ctrl+Shift+Divide) as mentioned here doesn't work with my IntelliJ IDEA 11.1.2. Installation under Windows 7, 64 Bit. I use a German keyboard layout.

What am I doing wrong ?

2条回答
神经病院院长
2楼-- · 2019-01-26 07:47

If you do not want to change your keymap, you can alternatively use the ÷ - Button on the Numpad of your keyboard. The ÷ - Button represents a / on German (and probably most others) -Keyboard Layouts too.

Therefore Ctrl+÷(Numpad) and Ctrl+Shift+÷(Numpad) work.

The good part is, that this will work on machines of other developers who haven't remaped their keymap too.

Edit (see comments below): In case your keyboard does not offer a Numpad, your keyboard-layout might offer you a way to emulate a Numpad (for exmaple using a Fn-key).

查看更多
够拽才男人
3楼-- · 2019-01-26 08:11

This issue is specific to your keyboard layout, you need to change the Comment with line comment and Comment with block comment shortcuts in Settings | Keymap.

查看更多
登录 后发表回答