Edit in editor: the shortcut in both apps
Each app binds this differently. The table shows the keys in Bash and Claude Code side by side.
| App | Mac | Windows | Linux |
|---|---|---|---|
| BashEdit the command in your editor | CtrlX,CtrlE | CtrlX,CtrlE | CtrlX,CtrlE |
| Claude CodeEdit the prompt in your text editor | CtrlG | CtrlG | CtrlG |
How the apps compare
- Mac: Ctrl+X Ctrl+E in Bash; Ctrl+G in Claude Code.
- Windows: Ctrl+X Ctrl+E in Bash; Ctrl+G in Claude Code.
- Linux: Ctrl+X Ctrl+E in Bash; Ctrl+G in Claude Code.
Learn it by pressing it: Bash shortcuts practice or Claude Code shortcuts practice.