- Get Into AI
- Posts
- 27 Claude Code Shortcuts That Change How You Code In One Line
27 Claude Code Shortcuts That Change How You Code In One Line
Most people never touch this. You will after today.
Become the go-to AI expert in 30 days
AI keeps coming up at work, but you still don't get it?
That's exactly why 1M+ professionals working at Google, Meta, and OpenAI read Superhuman AI daily.
Here's what you get:
Daily AI news that matters for your career - Filtered from 1000s of sources so you know what affects your industry.
Step-by-step tutorials you can use immediately - Real prompts and workflows that solve actual business problems.
New AI tools tested and reviewed - We try everything to deliver tools that drive real results.
All in just 3 minutes a day
Most people use Claude Code like a chatbot. Type a request. Watch it work. Repeat.
What they don't know is that Claude Code responds very differently based on specific keywords and commands. A single word can unlock hidden thinking modes, slash your token costs, or make it work 10x faster.
So here's a 27-shortcut cheatsheet you can use in any Claude Code session to control it on demand.
These aren't hacks. They're built-in features most developers never discover.
How to use these shortcuts
Type the shortcut directly in your prompt or command line.
Some are slash commands (start with /).
Some are magic words you add to any prompt.
Some are keyboard shortcuts or flags.
Example:
ultrathink. Refactor this authentication system.
/compact Focus on preserving the database schema.
claude --dangerously-skip-permissions
Claude Code Shortcut Cheatsheet
Thinking Keywords
Shortcut | What It Does | Example |
|---|---|---|
| Allocates 4,000 thinking tokens |
|
| Allocates 10,000 thinking tokens |
|
| Same as think hard (10k tokens) |
|
| Allocates 31,999 thinking tokens (max) |
|
| Same as think harder (max budget) |
|
| Triggers extended reasoning (10k) |
|
| Max thinking budget |
|
Slash Commands
Shortcut | What It Does | Example |
|---|---|---|
| Generate CLAUDE.md for your project |
|
| Compress context, preserve key info |
|
| Wipe conversation, fresh start |
|
| Show token usage and costs |
|
| Switch between Opus and Sonnet |
|
| Edit your CLAUDE.md file |
|
| Create and manage sub-agents |
|
| Trigger code review mode |
|
| Show all available commands |
|
Keyboard Shortcuts
Shortcut | What It Does | Example |
|---|---|---|
| Toggle auto-accept mode | Press once for auto-accept |
| Enter Plan Mode (read-only) | Press twice for planning |
| Stop current operation | Interrupt if going wrong |
| Rewind to edit previous prompt | Double-tap to retry |
| Autocomplete file paths |
|
| Cancel current task | Hard stop |
| Browse previous sessions | Navigate history |
CLI Flags
Shortcut | What It Does | Example |
|---|---|---|
| YOLO mode: no permission prompts |
|
| Continue last conversation |
|
| Headless mode for automation |
|
| JSON output for CI/CD | Use with |
Quick Memory Tricks
Shortcut | What It Does | Example |
|---|---|---|
| Add quick memory to CLAUDE.md |
|
| Reference specific file |
|
What to try today
Here are a few fast experiments you can run right now.
Add
ultrathinkbefore your next complex prompt and watch Claude reason through it step by step.Run
/initon any project to auto-generate a CLAUDE.md file.Create an alias for YOLO mode:
alias cc="claude --dangerously-skip-permissions"Use
/compactbefore you hit context limits instead of waiting for auto-compaction.Double-tap
Shift+Tabto enter Plan Mode before any big refactor.
Once you memorize these, Claude Code feels like a completely different tool.
Catch you tomorrow.
If this helped you use Claude Code more effectively, share this with someone who's still typing basic prompts and waiting for permission dialogs.
Did you like today's issue? |


Reply