Claude Code cheat sheet
The shortcuts, slash commands and terminal flags you actually use, checked against Anthropic’s docs. Search, pick Mac or Windows keys, click a command to copy it.
Keyboard shortcuts
Pressed in the prompt while Claude Code is running.
Editing the prompt
Readline keys. On a Mac, the Option ones need Option set as Meta in your terminal.
Prompt prefixes
Typed as the first character of a message.
Commands: the session
Commands: getting work done
Commands: setup
Terminal commands
Run from your shell, not inside a session.
Permission modes
Shift+Tab cycles them; claude --permission-mode starts in one.
default (Manual)Reads only; asks for edits and commandsReviewing each stepacceptEditsReads, file edits, mkdir, touch, mv, cpIterating while you watch the diffplanReads; no edits until you approve the planExploring before a big changeautoEverything, with a classifier checking each actionLong tasks, fewer promptsdontAskOnly pre-approved tools; the rest is deniedCI and scriptsbypassPermissionsEverything, no promptsIsolated containers and VMs onlyWhat each mode lets through, and how to stop the prompts that keep coming back, is in Claude Code permission prompts.
The one key you can’t press from another window
Shortcuts only help when you’re looking at the terminal. When Claude Code stops for a permission prompt or a question while you’re in another app, Coral shows it in your Mac’s notch and on your iPhone, with the command it wants to run, so you answer with one key. Get Coral for free
Questions
How do I see all Claude Code commands?
Type / in the prompt. The menu lists built-in commands, your skills, and commands from plugins and MCP servers; type letters after the / to filter it. Some commands depend on your plan or platform, so your list can differ from someone else’s.
What are the most useful Claude Code slash commands?
/clear to start fresh, /compact to free up context, /resume to go back to a session, /rewind to undo changes, /plan to plan before editing, /permissions to stop repeat prompts, and /usage to see how much of your plan’s limit you’ve used.
How do I switch permission modes in Claude Code?
Press Shift+Tab to cycle through Manual (default), acceptEdits and plan, then auto and bypassPermissions where they’re available. To start in a mode, run claude --permission-mode plan (or acceptEdits, auto, dontAsk).
How do I add a new line in the Claude Code prompt?
Type \ and then Enter. Run /terminal-setup once to make Shift+Enter add a new line too.
How do I stop Claude Code mid-task?
Press Esc. Claude stops the current response or tool call and keeps the work done so far, so you can redirect it. Press Esc twice on an empty prompt to rewind to an earlier point.
How do I resume a Claude Code session?
claude -c continues the most recent session in the current folder. claude -r opens a picker, or claude -r <name> resumes one you named with /rename or claude -n. Inside a session, /resume does the same.
Checked against Anthropic’s interactive mode, commands, CLI reference and permission modes pages, November 24, 2026. This sheet picks the common ones; type / in Claude Code for every command your version has.
Coral isn’t affiliated with Anthropic.