How to type ] on a Swiss French keyboard

⌥ Option+6

Hold Option and press “6”.

Not your keyboard? You are viewing: Swiss French
Hold Option and press “6”.escF1F2F3F4F5F6F7F8F9F10F11F12§°1+2"3*4ç5%6&7/8(9)0='?^`⌫⇥QWERTZUIOPèü¨!↩⇪ASDFGHJKLéöàä$£⇧<>YXCVBNM,;.:-_⇧fn⌃⌥⌘⌘⌥◀▲▼▶

Try it on your keyboard: the keys you press light up.

What is the right square bracket for?

The right square bracket ] closes what Left square bracket [ opened: a list, an index, a Markdown link or an editorial insertion.

primes = [2, 3, 5, 7]
print(primes[-1])

Common uses:

  • the end of an array or list in code;
  • the end of link text in Markdown: [documentation](/docs);
  • the end of a character class in a regular expression: [0-9];
  • the end of an editorial note: [sic], […].

Pitfalls

  • A missing bracket is a classic syntax error: code editors highlight the matching pair.
  • Its position varies a lot between layouts: ⌥ Option+6 here, ⌥ Option+⇧ Shift+) on French – Numerical.

] on each layout

SystemLayoutKey combination
macOS French – Numerical ⌥ Option+⇧ Shift+)
macOS French ⌥ Option+⇧ Shift+)
macOS Belgian ⌥ Option+⇧ Shift+)
macOS Swiss French ⌥ Option+6
macOS Canadian Multilingual (CSA) ⌥ Option+0
macOS Canadian French ]
macOS Spanish ⌥ Option++
macOS Latin American ⇧ Shift+}
macOS U.S. ]
macOS ABC ]
macOS U.S. International – PC ]

Other methods

Character Viewer

Press fn + E (or Control + Command + Space) to open the Character Viewer, search for “]” by name, then double-click it to insert it.

Text replacement

In System Settings › Keyboard › Text Replacements, map a shortcut (for example “;;x”) to the character ]: it will be inserted automatically in most apps.

] technical details

Unicode code pointU+005D
Official Unicode nameRIGHT SQUARE BRACKET
HTML entity&#93;
CSScontent: "\5D";
JavaScript / JSON"\u005D"
UTF-8 bytes5D
URL encoding%5D

The official name comes from the Unicode Character Database (ICU).

Related characters

Practice on this layout

Report a mistake

The combination does not work for you? Tell us what happens (macOS version, keyboard, what appears).