Best Way to Insert Parenthesis/Brackets

By Xah Lee. Date: . Last updated: .

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

QWERTY layout 5e7ee
QWERTY layout

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

Best Solution: Key Macro

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

Alternatively, use

or use Alt

The advantage is:

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

How to Program Key Macro

This can be done by one of the following way:

; insert paren, move cursor in between
F8::Send (){Left} ; insert paren
F9::Send {{}{}}{Left} ; insert braces
F10::Send []{Left}      ; insert square brackets

Keyboard Shortcut Design