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.

Permission modes — what Shift+Tab toggles

← Tips Control keys

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.

beginner

Claude doesn’t ask about everything any more, and how often it asks is something you control per by cycling the .

Press in the to cycle through them:

  • Auto — the current default. Claude checks each tool call for risky actions and prompt injection before running it, executes the ones it judges lower-risk, and blocks the rest. You get asked about the things worth asking about, and not about ls.
  • Accept edits — file edits go through without confirmation; still pause. The middle ground: you’ve agreed the plan, now let it execute while you watch the diffs.
  • Plan — read-only. Claude can look at files and talk through what it would do, but changes nothing. Best for exploring an unfamiliar codebase, or getting a proposal before any work starts.
  • Bypass permissions — asks about nothing. See the dangerously-skip-permissions tip before using it.

The current mode shows at the bottom of the . Shift+Tab again to cycle forward; the modes loop.

You can also set the mode at launch — claude --permission-mode plan — which is handy when you know the whole session is an exploration.

Common rhythm: start in , get a proposal, agree on direction, then Shift+Tab into auto-accept edits and let Claude work while you scan the diffs. Saves twenty individual y confirmations on a multi-file change — and you stay in control because shell commands still need approval.

The mode is per-session and resets when you start a new conversation.

Modes are a dial, not a safety net

Changing mode changes how often you’re asked. It doesn’t change what’s allowed. If there are things you never want happening — reading .env, pushing to main — those belong in deny rules, which hold regardless of the mode you’re in. See the permission-rules-not-blanket-trust tip.

You can also change the rules mid-session without restarting: run /permissions to manage allow and deny rules on the spot.

Next tip →

Stop the permission prompts properly — allow rules and deny rules

Permission fatigue has a better cure than skipping entirely. /fewer-permission- pre-approves the safe read-only commands you already use, and /permissions lets you write deny rules that block things you never want touched — deny always wins.