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.

Don't check Claude's work by hand — make it prove it

← Tips Workflow & commands

Don't check Claude's work by hand — make it prove it

The strongest verification habit in the hub — after Claude produces an output, ask it to verify its own work with real commands (grep the quotes, recompute the sums, re-run the logic) and show you the output. Commands either pass or fail; assurances always pass.

beginner

After Claude produces anything — a report, a CSV, a summary, a SQL query — your instinct is to check it by eye. Better instinct: make Claude check it with commands, and show you the output.

Verify your own report: every quote must appear as an exact substring of the source file — check each one with grep and show me the result. The counts must sum to the row count. Recompute the percentages. Fix anything that fails and re-run.

Why this works when “are you sure?” doesn’t: a command either passes or fails. grep finds the exact quote or it doesn’t. Arithmetic sums or it doesn’t. There’s no “looks fine to me” in the loop — which is exactly the failure mode of asking a to reassure you instead of prove it.

The shapes to reuse:

  • Quotes → grep -F each one against the source file.
  • Numbers → recompute independently from the raw data, compare.
  • Logic (SQL, formulas) → build a tiny test dataset with known edge cases and run it. Don’t review logic; execute it.
  • Claims → for each one, quote the exact source sentence that supports it. No quote, no claim.

One more step and it’s permanent: put the verification step in the folder’s CLAUDE.md, so Claude runs it before declaring any output done — you can’t forget what you’ve automated.

This is the habit that turns “I think the AI got it right” into “here’s the command output that shows it did” — which is the sentence your boss actually wants to hear.

Four rungs, in order of how hard they are to skip

The above is rung one. There are three more, and each is harder to forget than the last:

  1. Ask for the check in the same prompt. Costs nothing, works immediately, relies on you remembering.
  2. /goal — “Set a goal Claude checks before stopping.” The condition gets re-checked before the turn ends, rather than depending on your prompt wording.
  3. A stop — a script that runs when Claude tries to finish and blocks it until the check passes. Now it’s mechanical: Claude physically can’t declare done while the tests fail.
  4. A reviewer with fresh eyes — a separate , given the output and no history, asked to find what’s wrong. See the review-in-a-fresh-session tip.

You don’t need all four. You need one higher than “I’ll remember to ask” for anything that matters, because you won’t.

You don’t have to write the hook by hand — ask Claude

Rung three sounds like the intimidating one. It isn’t, because you don’t have to learn the config format:

Add a stop hook to this that runs npm test and blocks you from finishing the turn if it fails.

Claude writes the hook config, shows you the diff, and you stay in the “describe the outcome” lane. See the workflow-hooks-vs- tip for when a hook is the right tool.

Next tip →

Permission modes — what Shift+Tab toggles

Press Shift+Tab in the to cycle Claude's . Auto mode is now the default — Claude vets each action itself and only asks about the risky ones. is read-only; accept-edits lets edits through while still pause.