Skip to content

↑↓ moveEnter openEsc close

Paste the text you deleted in Claude Code

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

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

What else uses Ctrl+Y?

More Claude Code shortcuts: editing the prompt

ActionMacWindowsLinux
Go to the start of the lineCtrlACtrlACtrlA
Go to the end of the lineCtrlECtrlECtrlE
Back one wordOptionBAltBAltB
Forward one wordOptionFAltFAltF
Delete to the end of the lineCtrlKCtrlKCtrlK
Delete to the start of the lineCtrlUCtrlUCtrlU
Delete the previous wordCtrlWCtrlWCtrlW
Cycle through earlier deleted textOptionYAltYAltY
Suspend Claude Code to the shellCtrlZ—CtrlZ

All 34 Claude Code shortcuts