Skip to content

↑↓ moveEnter openEsc close

Edit the prompt in your text editor in Claude Code

Claude Code 2.x · 34 shortcuts · checked Nov 2026 · Source: Anthropic docs

In Claude Code, press Ctrl+G on Mac, Windows, Linux.

What else uses Ctrl+G?

More Claude Code shortcuts: input

ActionMacWindowsLinux
New line in the promptShiftEnterShiftEnterShiftEnter
Paste an image from the clipboardCtrlVCtrlVCtrlV
Cancel the input or generationCtrlCCtrlCCtrlC
Exit Claude CodeCtrlDCtrlDCtrlD
Clear the terminal screenCtrlLCtrlLCtrlL

All 34 Claude Code shortcuts