Claude Code Keyboard Shortcuts & Commands (8)
Complete collection of 8 Claude Code keyboard shortcuts and commands. Browse all shortcuts organized by category with our interactive search tool.
Search all Claude Code shortcuts interactively with real-time filtering
Open Interactive Shortcut FinderAll Shortcuts
Core Commands
| Shortcut | Action | Description |
|---|---|---|
| / help | Show help | Display all available slash commands. |
| / clear | Clear conversation | Clear the current conversation history. |
| / compact | Compact mode | Compress conversation context to save tokens. |
| / cost | Show token cost | Display token usage and cost for the session. |
| / status | Account status | Show current account and API status. |
| / doctor | Health check | Diagnose configuration and environment issues. |
| / bug | Report bug | Open a pre-filled bug report. |
| / release-notes | Release notes | Show the latest Claude Code release notes. |
| Esc | Stop / interrupt | Stop the current response or operation immediately. |
| Ctrl + C | Cancel | Cancel the current operation or exit. |
File & Code Operations
| Shortcut | Action | Description |
|---|---|---|
| Tab | Autocomplete path | Autocomplete file names and directory paths. |
| / add-dir <path> | Add directory | Add an additional directory to the working context. |
| / diff | Show diff | Display pending file changes as a diff. |
| / undo | Undo last edit | Revert the most recent file modification. |
| / ls | List files | Show files in the current working directory. |
MCP & Integrations
| Shortcut | Action | Description |
|---|---|---|
| / mcp | MCP status | Show connected MCP (Model Context Protocol) servers. |
| / mcp add <name> | Add MCP server | Connect a new MCP server by name or URL. |
| / permissions | Edit permissions | View and edit tool permission settings. |
| --allowedTools | Allow specific tools | Flag to whitelist specific tools when starting. |
| --dangerously-skip-permissions | Skip permission prompts | Skip all permission checks (use with caution). |
CLI Flags (Startup)
| Shortcut | Action | Description |
|---|---|---|
| claude --print | Print mode (-p) | Non-interactive mode: print response and exit. |
| claude --model <id> | Select model | Specify which Claude model to use. |
| claude --continue | Continue last session | Resume the most recent conversation. |
| claude --resume <id> | Resume by ID | Resume a specific past conversation by session ID. |
| cat file.py | claude | Pipe input | Pipe file or stdin content directly into Claude Code. |
| claude --no-markdown | Plain text output | Disable Markdown formatting in responses. |
| claude --output-format json | JSON output | Return structured JSON output for scripting. |
Prompt Tips
| Shortcut | Action | Description |
|---|---|---|
| Think step by step | Activate reasoning | Triggers extended thinking for complex problems. |
| Use ultrathink | Deep reasoning mode | Activates maximum thinking budget for hard tasks. |
| Be concise | Shorter responses | Instructs Claude to give compact answers. |
| Implement, do not explain | Code-only mode | Skip explanations and produce code directly. |
| Run the tests after | Auto-validate | Tell Claude to run tests after making changes. |
| Do not modify other files | Scope limit | Restrict changes to specified files only. |
Frequently Asked Questions
What are the most useful Claude Code shortcuts?
Claude Code has 8 essential shortcuts and commands. Visit the interactive shortcut finder at shortcut-tools.com to search and filter all Claude Code shortcuts by category.
How many Claude Code shortcuts are there?
Our collection includes 8 Claude Code keyboard shortcuts and commands organized by category. New shortcuts are added regularly.
Browse shortcuts for 230 platforms
Explore All Platforms