Skip to content

↑↓ moveEnter openEsc close

Cycle through earlier deleted text in Claude Code

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

In Claude Code, press Option+Y (Mac), Alt+Y (Windows, Linux). Works when: right after Ctrl+Y.

What else uses Option+Y? · What else uses Alt+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
Paste the text you deletedCtrlYCtrlYCtrlY
Suspend Claude Code to the shellCtrlZ—CtrlZ

All 34 Claude Code shortcuts