Skip to content

↑↓ moveEnter openEsc close

Exit Claude Code in Claude Code

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

In Claude Code, press Ctrl+D on Mac, Windows, Linux. Works when: prompt is empty.

What else uses Ctrl+D?

More Claude Code shortcuts: input

ActionMacWindowsLinux
New line in the promptShiftEnterShiftEnterShiftEnter
Paste an image from the clipboardCtrlVCtrlVCtrlV
Edit the prompt in your text editorCtrlGCtrlGCtrlG
Cancel the input or generationCtrlCCtrlCCtrlC
Clear the terminal screenCtrlLCtrlLCtrlL

All 34 Claude Code shortcuts