Best Way to Type/Insert Parenthesis, Brackets

By Xah Lee. Date: .

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

QWERTY keyboard layout 07998
QWERTY layout. To type the brackets, pinky finger is used at difficult positions. Some involves holding Shift key.

Many keyboard place them in difficult positions typed by pinky.

programmers Dvorak keyboard layout
“Programer's Dvorak” keyboard layout. Better, but still, pinky finger are used to type brackets.
Kinesis 194424-s
The Kinesis keyboard. Brackets are again typed by pinky. 〔►see Kinesis Advantage2 Keyboard Review
truly ergo keyboard 40563
Truly Ergonomic Keyboard, brackets on left pinky. Truly Ergonomic Keyboard Review

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, such as Logitech G710+ Keyboard or Kinesis Keyboard.