If you are a fat-fingered programmer like me, and frequently hit the Caps Lock key when you mean to hit the Tab key, it’s helpful to just disable the Caps Lock key. Does anyone actually use it intentionally?

For X11 (Linux and some Mac apps if you have X installed), add this to your .bashrc file (or equivalent for whatever shell you’re using): xmodmap -e “remove lock = Caps_Lock”

For non-X11 Mac apps, try this.

For Windows, take a look here.