Xcode comment selection shortcut not working on European keyboard I have an Apple keyboard (Norwegian) with numeric keypad and I can't get the Xcode shortcut for comment selection (cmd + /) to work. I have to change to Input source = US every time I want to comment out a block.  When I change from US to Norwegian input source the Xcode -> Editor -> Structure -> comment selection shortcut disappears.

Does anyone know why changing input source from Norwegian/Swedish/German (I guess all European languages) have this effect.  What is the "European" shortcut for comment selection ?

Are Europeans not allowed by Apple to comment select..!? ;-)

Any ideas would be much appreciated !
You can fix this by going to System Preferences > Keyboard > Shortcuts, then App Shortcuts. Click the + button and select Xcode from the top drop bar. Then set the Menu Title to Comment Selection. Next select the keyboard shortcut box and press the desired keyboard combination, then click OK.

It seems that the Norwegian keyboard's encoding of the / character does not work in shortcuts, so you should use something else than the /