Best Way to Type/Insert Parenthesis, Brackets

By Xah Lee. Date: . Last updated: .

What's the best way to type/insert the brackets ( ) { } [ ]?

QWERTY layout 5e7ee
QWERTY layout

in QWERTY layout, to type the brackets, pinky finger is used at difficult positions. Some involves holding Shift key.

the best solution is to use a key macro that inserts both left and right brackets and place cursor between them.

Alternatively, use


The advantage is:

You can have a easy trigger key, such as F9 or Ctrl+h, and the bracket pairs are inserted. No weak pinky finger, no awkward position, no Shift key.

This can be done in emacs, see Emacs Lisp: Insert Brackets by Pair, in a key macro software or by keyboard with key macros features.

[see Programable Keyboards with Onboard Memory]

If you have a question, put $5 at patreon and message me.