How to use certain keymaps of IntelliJ Idea with german Mac Keyboard

intellij-idea, keyboard, keyboard-shortcuts, macos

Solution

Try this out, CMD + _ on the German keyboard for comment: https://victorvolle.wordpress.com/2012/05/16/intellij-german-keyboard-shortcuts-reference/

Problem

update I'm using us layout now. But the problem is that the key bindings are not bound to the characters a key would produce but to the key itself. So for example commenting is cmd+- as `-` is on the same key on German layout as `/` on us. So cmd+\ translates to cmd+- on German layout. It's not fixed on Idea14, don't know about 15. When using default shortcuts of IntelliJ Idea, some of them are not working properly on a German Keyboard. Mostly because there is a key that is available without pressing `Shift` on an us layout. E.g. pressing `Cmd`+`;` can only be achieved by pressing `Cmd`+`Shift`+`,` on a german layout, so this keymapping for opening the projects structure doesn't work. I helped myself out by mapping `Cmd`+`Shift`+`,` instead of `Cmd`+`;`. However for `Cmd`+`/` (toggle line comment; `Cmd`+`Shift`+`7` on german layout), this is not working. First problem of course is that `Cmd`+`Shift`+`7` is already mapped unlike `Cmd`+`Shift`+`,`. So I tried to remap to `Cmd`+`Shift`+`L` which wasn't mapped already, but the comment toggling won't work. I gotta add that I'm using IdeaVim Plugin and I have three different options that are called "Comment with (Line|Block) comment", all under a different hierarchy (Code->Folding, Plugins->IdeaVim and just Other. Which one is the right? How do you tackle these problems on a non-us layout and a mac keyboard?

Original source