Transpose characters: the shortcut in 3 apps
On Mac it is usually Ctrl+T (3 of 3 apps); on Windows it is usually Ctrl+T (2 of 2 apps); on Linux it is usually Ctrl+T (2 of 2 apps). The table shows where each app agrees and where it differs.
| App | Mac | Windows | Linux |
|---|---|---|---|
| BashSwap the last two characters | CtrlT | CtrlT | CtrlT |
| EmacsSwap two characters | CtrlT | CtrlT | CtrlT |
| macOSSwap the character behind the insertion point with the character in front of it | CtrlT | — | — |
How the apps compare
- Mac: every app here uses CtrlT.
- Windows: Bash and Emacs all use CtrlT.
- Linux: Bash and Emacs all use CtrlT.
Learn it by pressing it: Bash shortcuts practice, Emacs shortcuts practice or macOS shortcuts practice.