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.

Claude will agree with you — ask it not to

← Tips Prompting

Claude will agree with you — ask it not to

Claude leans towards agreeing with whatever you propose. Ask "is this a good idea?" and you'll usually hear yes. Ask it to argue the other side, or to find the three biggest problems, and you get the judgement you were actually after.

beginner

Ask Claude “is this a good approach?” and you will usually be told yes.

This isn’t dishonesty. It’s a tilt towards being agreeable, and it’s strongest exactly where you least want it: when you’ve just described a plan you’re already invested in. A newcomer reads the agreement as validation from a very well-read colleague. It usually isn’t.

The fix is one sentence

Be brutally honest. What are the three biggest problems with this approach?

Or, when you want the real stress test:

Argue the case against this plan as if you’d been asked to review it and find it wanting.

Both work because they change the job. “Is this good?” invites agreement. “Find the three biggest problems” requires output that doesn’t exist unless Claude actually looks.

Where this matters most

  • Before you build anything. The cheapest moment to find a bad plan.
  • When you’re tired or rushed. Exactly when your own judgement is worst and agreement is most tempting.
  • When you’ve explained your reasoning at length. The more context you give for a decision, the more Claude has to agree with.
  • Reviewing your own work. “Any problems with this?” gets you a polite no. “Find what a strict reviewer would reject” gets you a list.

Make it the default

If you never want to think about it again, put it in your CLAUDE.md:

When I ask whether something is a good idea, argue both sides before
answering. If you think a plan is weak, say so directly and say why.

One line, and the tilt stops being your problem. Remember it only takes effect in a new — see the -needs-a-restart tip.

Next tip →

Editing CLAUDE.md mid-session does nothing — you have to restart

is read once, when the starts. Adding a rule to it in the middle of a conversation has no effect until you start a new session — which is why people conclude CLAUDE.md "doesn't work" when it does.