Ctrl+G in Claude Code

Open the prompt in your default text editor.

Mac

Ctrl+G

Windows

Ctrl+G

Option-key shortcuts need your terminal to send Option as Meta on macOS. Source: Claude Code interactive mode docs, checked 2026-10-24.

More shortcuts

  • Ctrl+L: Redraw the screen, keeping input and history.
  • Ctrl+O: Toggle the transcript viewer with detailed tool usage.
  • Ctrl+R: Reverse search your command history.

All keyboard shortcuts

Remember it next time

/cards has a flip-card deck for every Claude Code shortcut.