0% found this document useful (0 votes)
24 views1 page

Essential Keyboard Shortcuts & Commands

The document provides a comprehensive cheatsheet for using Claude Code, detailing keyboard shortcuts, configuration commands, essential commands, and popular MCP servers. It includes instructions for managing worktrees in Git, as well as settings locations for user and project configurations. Additionally, it lists various AI models available for use and offers links for further resources.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views1 page

Essential Keyboard Shortcuts & Commands

The document provides a comprehensive cheatsheet for using Claude Code, detailing keyboard shortcuts, configuration commands, essential commands, and popular MCP servers. It includes instructions for managing worktrees in Git, as well as settings locations for user and project configurations. Additionally, it lists various AI models available for use and offers links for further resources.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

⌨️ KEYBOARD SHORTCUTS ⚙️ CONFIGURATION

! Bash mode prefix claude config list


View all settings
@ Mention files/folders

claude config set <key> <value>


\ Line break (backslash + Enter)
Change setting value

Esc Interrupt Claude


claude config add <key> <value>
Ctrl+R Full output/context Add to array settings

Ctrl+V Paste image

Esc+Esc History navigation 🌿 GIT WORKTREES

Shift+Tab Auto-accept ("yolo mode")


git worktree add ../app-feature -b feature main

Plan mode Create new worktree with branch


Shift+Tab+Tab

Cmd+Esc Quick launch in IDEs git worktree list


List all worktrees
Cmd+Opt+K Insert file references
git worktree remove <path>
Remove worktree

🚀 ESSENTIAL COMMANDS

npm install -g @anthropic-ai/claude-code


🔌 POPULAR MCP SERVERS
Install Claude Code globally
claude mcp add playwright npx @playwright/mcp@latest
claude update Browser automation
Update to latest version
claude mcp add --transport http context7 [Link]
claude config set model claude-opus-4-1-20250805 Documentation access
Set Opus 4.1 as default model

claude config set -g theme dark


Enable dark theme globally
🪝 HOOKS & AUTOMATION

Hook Events:
PreToolUse PostToolUse
⚡ SLASH COMMANDS
UserPromptSubmit Stop
SessionStart SessionEnd
/clear - Clear history /init - Initialize project

/model - Change AI model /config - View/modify config Settings Location:


~/.claude/[Link] or .claude/[Link]
/cost - Token usage stats /doctor - Health check

/agents - Manage subagents /mcp - MCP servers

/memory - Edit [Link] /permissions - Security 🤖 AI MODELS


/review - Code review /vim - Vim mode
Opus 4.1
claude-opus-4-1-20250805

📁 KEY FILE LOCATIONS


Most capable

Sonnet 4
~/.claude/[Link] claude-sonnet-4-20250514
User global settings Balanced performance

.claude/[Link] Haiku 3.5


Project settings
claude-3-5-haiku-20241022
Fastest responses
.claude/commands/
Custom slash commands

.claude/agents/
Project subagents

Get the full interactive cheatsheet at [Link]/code-cheatsheet


Claude Code is developed by Anthropic • This cheatsheet is maintained by [Link]

You might also like