Claude Code keyboard shortcuts: practical guide
Claude Code shortcuts को सुरक्षित तरीके से use करें: current keys, conflicts, keybindings और onboarding.
Claude Code के keyboard shortcuts तभी productive होते हैं जब terminal, operating system, editor और accessibility tools उन keys को Claude Code तक पहुंचने दें। Mac पर काम करने वाला shortcut Windows Terminal में fail हो सकता है। VS Code editor focus, tmux, IME, screen reader या OS किसी key को पहले ही capture कर सकता है। इसलिए shortcuts guide का पहला step memorization नहीं, verification है।
यह article 2 June 2026 के हिसाब से refresh किया गया है। इसमें current Claude Code shortcuts discover करने का तरीका, terminal और editor conflicts, custom slash commands बनाम OS shortcuts, safe keybindings.json, onboarding cheat sheet, accessibility, Windows/macOS differences और Claude Code को safe prompt देने का तरीका शामिल है।
Shortcut details बदल सकते हैं। Exact keys हमेशा अपनी session में verify करें और official docs देखें: Claude Code keybindings, interactive mode, commands, slash commands, और IDE integrations। Related habits के लिए Claude Code productivity tips और command palette guide भी देखें।
पहले current shortcuts verify करें
सबसे important shortcut कोई key combination नहीं है। सबसे important habit है current keymap देखना। Claude Code में /keybindings command shortcuts देखने और edit करने के लिए है। Custom settings ~/.claude/keybindings.json में रहती हैं। /doctor terminal support और conflicts check करने के लिए useful है। अगर terminal कोई key Claude Code तक भेज ही नहीं रहा, तो सिर्फ Claude Code settings बदलने से problem solve नहीं होगी।
Windows PowerShell में यह basic check करें।
claude --version
claude
# Claude Code के अंदर run करें:
# /status
# /keybindings
# /doctor
macOS और Linux में भी version, terminal app, OS, VS Code integrated terminal और tmux context note करें। Team docs में सिर्फ “यह key press करें” लिखना पर्याप्त नहीं है।
flowchart TD
A["Key press"] --> B["OS reserved shortcut"]
B --> C["Terminal key handling"]
C --> D["Claude Code keybindings"]
D --> E["Chat, edit, or view action"]
C --> F["tmux, IME, or editor conflict"]
पहले कौन से shortcuts सीखें
Claude Code में कई shortcuts हैं, लेकिन onboarding में पहले वे actions confirm करें जो daily mistakes कम करते हैं: interrupt, send, multiline input, clear screen, history, external editor और todos. Exact keys /keybindings में check करें।
| Goal | Examples to verify | Practical warning |
|---|---|---|
| Current work stop करना | Ctrl+C | Emergency muscle memory casually change न करें |
| Input send करना | Enter | Long prompt से पहले multiline habit बनाएं |
| Multiline input | Shift+Enter, Ctrl+J | कुछ terminals पहले /terminal-setup मांगते हैं |
| Screen clear | Ctrl+L | यह display clear करता है, history delete नहीं |
| History देखना | Ctrl+R, Ctrl+O | Context switch से पहले unsent text check करें |
| External editor | Ctrl+X Ctrl+E, कभी Ctrl+G | Long review prompt के लिए safer |
| Todos देखना | Ctrl+T | Local custom binding check करें |
New teammate को पहले दिन बड़ी table देने से बेहतर है कि वह /keybindings, /doctor, multiline, external editor और safe interrupt practice करे।
Windows, macOS, VS Code और terminal differences
macOS terminal में Option Meta की तरह act कर सकता है, लेकिन setting के हिसाब से special characters भी insert कर सकता है। Windows में Ctrl, Alt और Windows key का behavior terminal और app पर depend करता है। Linux window manager भी key capture कर सकता है।
VS Code में focus सबसे बड़ा confusion point है। Integrated terminal में focus हो तो key Claude Code तक जा सकती है। Editor में focus हो तो वही key VS Code command चला सकती है। Cheat sheet में हमेशा लिखें कि key किस focus में use करनी है।
Team को पहले ये decisions लेने चाहिए:
- Onboarding terminal कौन सा होगा, जैसे Windows Terminal या iTerm2.
- Multiline standard
Shift+Enterहोगा याCtrl+J. - VS Code, integrated terminal और Claude Code के बीच focus कैसे बदलेगा।
Accessibility भी इसी design का हिस्सा है। Screen reader, IME, remote desktop या custom keyboard users के लिए complex chords fragile हो सकते हैं। Menu, slash command, external editor और checklist alternative path के रूप में रखें। Related article: Claude Code accessibility।
keybindings.json छोटा रखें
Custom keybindings powerful हैं, लेकिन बहुत ज्यादा changes official docs और team explanations को mismatch कर देते हैं। शुरुआत में केवल दो काम करें: strong conflict disable करें, या frequent safe action के लिए छोटा रास्ता दें।
यह minimal ~/.claude/keybindings.json example documented structure follow करता है। यह Ctrl+E को external editor से map करता है और Chat में Ctrl+U disable करता है। अगर आपका terminal या shell already Ctrl+E use करता है, दूसरी key चुनें।
{
"$schema": "https://www.schemastore.org/claude-code-keybindings.json",
"bindings": [
{
"context": "Chat",
"bindings": {
"ctrl+e": "chat:externalEditor",
"ctrl+u": null
}
}
]
}
Safe rule: हर custom binding का reason लिखें। Ctrl+C जैसे interrupt shortcuts को बिना test change न करें। Team default बनाने से पहले Windows, macOS, VS Code integrated terminal और tmux में press करके देखें।
Existing custom file check करने के लिए:
$path = Join-Path $HOME ".claude\keybindings.json"
if (Test-Path $path) {
Get-Item $path | Select-Object FullName, LastWriteTime
} else {
"No custom keybindings.json found."
}
Workflow को slash command या skill बनाएं
Review, test, commit, push को एक key से चलाना safe नहीं है। Shortcut UI movement या small action के लिए अच्छा है। Repeatable workflow को slash command या skill बनाना बेहतर है, क्योंकि steps visible और reviewable रहते हैं।
Shortcut docs review के लिए project skill बना सकते हैं।
$dir = ".claude\skills\shortcut-review"
New-Item -ItemType Directory -Force $dir | Out-Null
@'
---
description: Review Claude Code shortcut docs for this repository.
---
Check the current Claude Code shortcuts before editing docs.
1. Ask the user to run `/keybindings` and `/doctor`.
2. Compare Windows, macOS, VS Code, and terminal notes.
3. Do not invent exact keybindings that are not documented.
4. Keep destructive workflows behind explicit prompts.
5. End with changed files, checks, and residual risk.
'@ | Set-Content -Encoding utf8 "$dir\SKILL.md"
अगर skill files edit करे, Git चलाए या external commands use करे, तो Claude Code permissions guide के साथ approval boundaries भी define करें।
Concrete use cases
पहला use case onboarding है। पहले 30 minutes में /keybindings, /doctor, multiline input, external editor, clear screen, history और interrupt cover करें। यह long shortcut table से ज्यादा practical है।
दूसरा use case long review prompt है। Security, accessibility, CTA, tests और residual risk को one-liner में मत भेजें। External editor खोलें, scope, forbidden changes, verification commands और output format लिखें। Claude Code code review checklist useful है।
तीसरा use case VS Code implementation है। Selected code Claude Code को भेजें, plan लें, VS Code में diff देखें और terminal में tests चलाएं। Cheat sheet में focus context जरूर लिखें।
चौथा use case accessibility-first workflow है। Screen reader, IME, remote desktop और custom keyboard में complex key combos fail हो सकते हैं। Slash command, menu, external editor और checklist alternative path हैं।
Failure modes और safe prompt
सबसे dangerous failure Ctrl+C remap करना है। Interrupt और emergency stop predictable रहना चाहिए। दूसरा failure tmux और terminal shortcuts ignore करना है। Ctrl+B, Ctrl+Shift+T, Alt combos अक्सर Claude Code तक नहीं पहुंचते। तीसरा failure stale docs है। Update date और /keybindings check हमेशा table से ऊपर रखें। चौथा failure commit, push, deploy या monetization changes को एक key से bind करना है।
Claude Code से docs update कराते समय यह prompt paste करें।
You are updating our Claude Code keyboard shortcut guide.
Scope:
- Read only the target article and related docs.
- Preserve slug, heroImage, and existing internal links unless broken.
- Verify current shortcut facts against official Claude Code docs.
- Treat exact keybindings as version-sensitive.
Required content:
- How to open /keybindings and run /doctor.
- Windows, macOS, VS Code, terminal, tmux, and IME conflicts.
- keybindings.json example with a small safe change.
- 3 or more practical use cases.
- Concrete failure modes and accessibility notes.
- Final verification note with commands run and residual risk.
Do not:
- Invent undocumented shortcut details.
- Map destructive actions to one key.
- Remove monetization CTA, product links, or training links.
Onboarding cheat sheet:
# Claude Code shortcuts onboarding
Update date: 2026-06-02
Before memorizing keys, run:
1. `/status`
2. `/keybindings`
3. `/doctor`
Daily keys to confirm:
| Situation | What to check |
| --- | --- |
| Stop current work | Confirm the interrupt key in `/keybindings` |
| Long prompt | Use external editor before sending |
| Multiline prompt | Test Shift+Enter and Ctrl+J |
| Screen is noisy | Use the clear-screen shortcut |
| Need old context | Open conversation history |
| VS Code workflow | Note which app has focus first |
Rule:
If your terminal, OS, or screen reader uses the same key,
do not force the Claude Code shortcut. Choose a safer route.
CTA और practical result
Individual practice के लिए free Claude Code cheatsheet से शुरू करें। Reusable prompts और templates के लिए ClaudeCodeLab products देखें। Team rollout, terminal standard, CLAUDE.md, permissions और review policy के लिए Claude Code training and consultation बेहतर है।
Masa के practical notes में सबसे बड़ा gain नए shortcuts जोड़ने से नहीं, बल्कि पहले /keybindings और /doctor देखने से आया। Windows Terminal और VS Code integrated terminal में multiline input और external editor पहले verify करने से long prompt accidental send कम हुए। Residual risk version drift है: Claude Code, terminal apps और IDE integrations बदल सकते हैं, इसलिए हर refresh में official docs और local keymap फिर से check करें।
मुफ़्त PDF: Claude Code cheatsheet
Email डालें और commands, review habits तथा safe workflow वाली एक-page PDF पाएँ.
हम आपका data सुरक्षित रखते हैं और spam नहीं भेजते.
लेखक के बारे में
Masa
Claude Code workflow और team adoption पर काम करने वाला engineer.
संबंधित लेख
Claude Code permission safety ladder: access धीरे-धीरे बढ़ाएं
read-only से limited edits, proof commands और deploy checks तक permission बढ़ाने की सुरक्षित ladder.
Claude Code Small PR Proof Pack: छोटे PR को review-ready बनाना
Claude Code PR के लिए diff, checks, public URL, CTA path और rollback वाला practical proof pack.
Claude Code Review Gate Before Commit: diff, test, public URL और CTA जांच
Claude Code से commit से पहले review gate बनाएं: diff, build, public URL, Gumroad, consultation, tests और unrelated files।