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.

When Claude goes wrong, rewind — don't try to talk it out of the hole

← Tips Control keys

When Claude goes wrong, rewind — don't try to talk it out of the hole

/rewind restores the code and conversation to an earlier point. It beats arguing with a that has gone off the rails. Critical caveat - rewind does not undo files deleted by ; that needs .

beginner

The classic beginner afternoon: Claude makes a wrong turn, you correct it, it over-corrects, you correct that, and forty minutes later the code is worse than when you started.

Stop doing that. Rewind instead.

/rewind

describes it as “Restore the code and/or conversation to a previous point.” You pick a moment before things went wrong and go back to it. The bad turns don’t have to be argued away — they just stop having happened.

Why this beats correcting: once a conversation contains three wrong attempts, every new answer is shaped by those attempts. You’re not just fighting the original mistake, you’re fighting the accumulated context around it. Rewinding removes the context. Correcting adds to it.

When to reach for it: the second correction. If your first “no, not like that” didn’t land, don’t type a third. Rewind.

The caveat that actually matters

Rewind does not undo .

Rewind covers Claude’s own edits to your code and the conversation. If Claude ran a shell command that deleted files, moved a directory, or dropped a table, rewinding the conversation does not bring any of that back. That’s git territory — and if the work was never committed, it may be gone for good.

This is the single most expensive gap between what people assume rewind does and what it does.

The practical consequence, and it’s the whole reason this tip exists: before you let Claude do anything destructive. A commit takes five seconds and is the only real undo for -level damage.

Before we start — commit the current state with a message describing where we are, so I have something to go back to.

  • — stop Claude mid-action. See the esc-to-stop tip.
  • — clears the input box when your half-written is a mess.
Next tip →

Say what you want, not what you don't — and stop shouting

Two phrasing habits that quietly damage — framing instructions as prohibitions ("do NOT use tables") and emphatic shouting ("CRITICAL - you must ALWAYS"). Both work less well than plainly describing the outcome you want.