Skip to content

↑↓ moveEnter openEsc close

Cancel the input or generation in Claude Code

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

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

What else uses Ctrl+C?

More Claude Code shortcuts: input

ActionMacWindowsLinux
New line in the promptShiftEnterShiftEnterShiftEnter
Paste an image from the clipboardCtrlVCtrlVCtrlV
Edit the prompt in your text editorCtrlGCtrlGCtrlG
Exit Claude CodeCtrlDCtrlDCtrlD
Clear the terminal screenCtrlLCtrlLCtrlL

All 34 Claude Code shortcuts