0

I'm using an M1 MacBook Air with a Swedish keyboard and there is no left square bracket [ key though I can do that bracket easily by pressing ⌥ Option + 8 .

Xcode, however, has several shortcuts containing the [ key. Is there any way to use these shortcuts with this keyboard?

3
  • I have a German keyboard which does not have a “[" key either, but I could not find an Xcode shortcut using that key. Can you give an example?
    – Martin R
    Commented Oct 6, 2022 at 8:06
  • idk the answer in this particular case, but sometimes these commands translate to being in the same position, rather than the same output key. Have a look at apple.stackexchange.com/q/193937/85275 for a similar situation.
    – Tetsujin
    Commented Oct 6, 2022 at 8:40
  • @MartinR if developing with IntelliJ or similar IDE's developed by JetBrains you can find such shorcuts... e.g. jetbrains.com/help/idea/navigating-through-the-source-code.html
    – maxxyme
    Commented Apr 25, 2023 at 14:42

1 Answer 1

0

I have a non-US English keyboard on my MBP as well. Whenever I come across a keyboard shortcut involving a key that does not exist on that keyboard, I try two things to replace it: the key positioned at the same place on it as the US English keyboard or the key combination on that keyboard that produces the character in the shortcut. Sometimes neither works but frequently one does.

The left square bracket [ key on a US English keyboard is located directly to the right of the P key as shown in the picture below. I believe Swedish keyboard has the Å key at the same location as shown in the next picture.

US English Mac Keyboard

Swedish Mac Keyboard

Then, for example, for the Xcode indentation shortcut, which is Command ⌘+ [ , you could try Command ⌘+ Å . If that doesn't work, then, for the same shortcut, you can try Command ⌘+ ⌥ Option + 8 .

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .