Claude Code keyboard shortcuts
This covers Claude Code, the terminal tool, which is where the shortcuts are. Claude Code runs inside your terminal, so most of its text editing follows the readline conventions you already know from a shell, and a few of its keys can be intercepted by the terminal before they arrive.
Checked against Claude Code documentation — Interactive mode. Version: Claude Code, current release.
The same actions in the other AI coding tools, side by side: AI coding tools compared.
Showing the Windows keyboard. Showing the Mac keyboard.
The top 17 are the Claude Code shortcuts this page marks as the ones to learn first, in the order they appear here. The drill asks the marked ones first too, shuffled. Or tick your own and print those.
The 17 to learn first: the shortcuts the Claude Code page marks as the ones to learn first, in the order they appear on it.
Your own sheet: the Claude Code shortcuts you ticked.
Running the session
Practise theseWhile Claude is working
You do not have to wait for a turn to end to say something.
Switching model and mode
Practise theseEditing the prompt
These are the readline bindings, so they also work in bash, zsh and most other terminal programs. On macOS the Alt shortcuts need Option configured as Meta in your terminal settings.
Practise theseWriting more than one line
Which one works depends on your terminal, which is why there are four.
Practise theseCharacters that start something
The transcript view
Open it with Ctrl+O first. Some of these need the fullscreen renderer.
Practise theseNext
Claude Desktop
Claude Desktop holds chat, Cowork and Claude Code in one window, and most of the keys Anthropic documents belong to its Code tab of sessions and panes.
Codex CLI
Codex CLI is OpenAI's coding agent for the terminal, and OpenAI documents only a short list of its keys.
Copilot CLI
GitHub Copilot CLI is the copilot command, GitHub's coding agent for the terminal, and eight of its keys are two-step Ctrl+X chords.
Cursor
Cursor is built on VS Code, so the whole VS Code keymap comes with it and everything on that page still applies.
Claude Code keyboard shortcuts — comboshelf.com. Checked 25 September 2026 against Claude Code documentation — Interactive mode.