Skip to content

Keyboard

Shortcuts

Everyone learns Esc. These are the rest — all checked against Claude Code itself, not copied off a blog.

The three to learn first

If you remember nothing else.

  • Esc Esc
    Stop Claude mid-action The moment Claude starts doing something you did not intend.
  • Esc thenEsc Esc thenEsc
    Clear the input box Your half-written prompt has turned into a mess and you want a clean line.
  • Shift +Tab Shift +Tab
    Cycle permission mode Starting an exploration (plan) or letting an agreed plan run (accept edits). On older Windows setups without VT mode, this is Meta+M instead.

Writing the prompt

Composing, searching, pasting.

  • Ctrl +J Ctrl +J
    Start a new line without sending Any prompt longer than one sentence.
  • Ctrl +R Ctrl +R
    Search your prompt history "What did I type last week that worked?" Inside the search, Ctrl+S cycles the scope: this session → this project → everywhere.
  • Ctrl +S Ctrl +S
    Park the half-written prompt You are three sentences into a prompt and need to go check something.
  • Ctrl +G Ctrl +G
    Edit the prompt in your real editor Writing anything long or carefully structured.
  • Ctrl +V Alt +V
    Paste an image Anything visual. Annotate the screenshot first and it works even better. Ctrl+V, not Cmd+V — macOS keeps Cmd+V for its own paste. Windows and WSL use Alt+V. On WSL both Ctrl+V and Alt+V work.
  • Option +T Alt +T
    Toggle thinking for the next turn One hard question in the middle of otherwise simple work.
  • Ctrl +_ Ctrl +_
    Undo in the input box You deleted half a prompt by accident.

Seeing what happened

What Claude did and what it plans to do.

  • Ctrl +O Ctrl +O
    Toggle the full transcript You want to know what it actually did, not the summary.
  • Ctrl +T Ctrl +T
    Toggle the task checklist Any multi-step task, before it gets far.

Running the session

Long jobs, models, the terminal.

  • Ctrl +B Ctrl +B
    Send the running job to the background A long build, test run, or search you do not want to sit and watch.
  • Option +P Alt +P
    Switch model Between tasks — rarely a good idea mid-task.
  • Option +O Alt +O
    Toggle fast mode Straightforward work where you would rather have speed than depth.
  • Ctrl +Z Ctrl +Z
    Step out to the shell without quitting You need the terminal for one command and do not want to lose the session. Terminal-level shortcut (Unix SIGTSTP), not a Claude Code binding. Windows has no direct equivalent.

The keys are the same on both systems — only the modifier's name changes (macOS calls Alt Option). Run /keybindings in any session to see exactly what is bound on your machine.

Seven keys that make Claude Code feel like a tool, not a chat box

← Tips Control keys

Seven keys that make Claude Code feel like a tool, not a chat box

Beyond Esc there are about seven shortcuts that change how the feels — search your own history, park a half-written , open the editor, see what Claude actually did, and background a long task. All verified against 2.1.

beginner

Everyone learns . Almost nobody learns the rest. These are the ones that change the day-to-day.

KeyWhat it doesWhy you’d want it
Search your history”What did I type last week that worked?” Your own past prompts are the best prompt library you have.
Park the half-written promptYou’re three sentences into a prompt and need to check something. Park it, go look, come back. calls this “stash”.
Open the prompt in your real editorWriting a long, careful prompt in a box is miserable. This opens $EDITOR instead.
Toggle the task checklistShows what Claude thinks it’s doing. The cheapest way to catch it planning the wrong thing.
Toggle the full transcriptExpands everything Claude collapsed — every command it ran, every file it touched.
Send the running task to the backgroundA long job doesn’t have to hold your hostage.
Start a new line without sendingThe answer to “how do I write a second paragraph without pressing send?”
Toggle thinking for the next turnExtra reasoning when you want it, without changing any settings. On macOS the same key is labelled Option.

A few more you’ll meet by accident, so meet them on purpose instead:

  • — cycles the (see the permission-modes tip).
  • — picker. — fast mode.
  • — paste an image straight into the prompt. On Windows and that’s Alt+V.
  • — clears the input box. Press it when the prompt is a mess and you want a clean start.

And three characters that are technically not shortcuts but behave like them, shown in Claude Code’s own hint strip:

  • ! starts a .
  • / starts a command.
  • @ points at a file path.

Don’t trust a shortcut list — including this one

Bindings change between versions, and most lists online are out of date. Run /keybindings to open your own shortcuts file and see what’s true in the version you’re running. If a key here doesn’t do what it says, that file wins.

Next tip →

Any output can level up into an interactive page — one sentence does it

The upgrade that works on every report, CSV, or checklist Claude produces — "turn this into a single self-contained interactive HTML file I can open by double-clicking." No server, no installs, no IT ticket; the file travels by email and opens in any browser.