It is no news that I am pretty skeptical that PHPStorm is actually a good IDE. I especially question their handling of international keyboards. You see, on an international keyboard like the German one the keyboard shortcuts
cmd + shift + 7 and
cmd + / are virtually the same, because there is no way to type a
/ without typing
shift + 7.1
To my knowledge the only modern IDE that offers a default keymap for macOs that doesn’t work out of the box with my default international keyboard is Jetbrain’s offering. The reason is that some genius thought to implement key bindings without any understanding what symbols are necessarily typed by using a modifier key. So you end up with a keyboard shortcut like
cmd + / that doesn’t work in PHPStorm, but will work out of the box in VS Code.2
P.S.: The problem is old btw.: The offical issue in their bug tracker is 7(!) years old.
P.P.S.: Is this a hard problem? Maybe. The more interesting question to my mind is, though: Why is it a solved problem in all other IDEs? This is table stakes.
By chance you can also type
cmd + devision symbol, but that is not the same as a forward slash and is indeed - and this time correctly - its own shortcut in PHPStorm. Try to type that one on a keyboard without a numpad, though - which means this shortcut is useless on all(!) MacBooks - if you don’t have an external keyboard attached. ↩︎
To be fair: The shortcut ends up being displayed as
shift + cmd + 7, but at least vsc won’t act like
cmd + /and
cmd + shift + 7are completely different key bindings (which they are not). ↩︎
This blog's owner has not provided a valid email address yet.