In short.
This is a keyboard shortcut guide for Claude Code users, with customization limited by terminal support, interface context and application version. It explains how to edit ~/.claude/keybindings.json, assign actions to keys, remove defaults and diagnose invalid mappings. Its strongest practical detail concerns interactions that can make an apparently valid shortcut ineffective, including reserved keys, sequence prefixes, focused text fields and older interface implementations. Costs and redistribution rights are unknown from this page, and runtime behavior was not tested.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete selected page at [https://code.claude.com/docs/en/keybindings.md], including configuration examples, action tables, terminal and keyboard-layout caveats, interface-specific behavior, historical notices, Vim interaction and validation guidance. Linked documentation and the referenced JSON Schema are excluded. No commands or examples were executed. Installation details, current release status, costs, licensing and behavior beyond the supplied text remain unknown or unassessed.
The overview
identity
The resource is the Claude Code documentation page titled Customize keyboard shortcuts at [https://code.claude.com/docs/en/keybindings.md]. It teaches configuration of Claude Code’s keyboard controls.
Its central configuration file is ~/.claude/keybindings.json. The page supplies the file structure, supported contexts, action names, default shortcuts, examples and troubleshooting rules.
assessment
The guide is useful when a Claude Code user wants a particular action on a different key or needs to understand why a shortcut behaves differently between screens. Its action tables and JSON examples support specific changes such as opening an external editor, changing message submission or adjusting list navigation.
The most useful cautions concern mappings that are syntactically valid yet ineffective: some action names intentionally do nothing, some operate only in particular renderers, and terminal software may intercept a key before Claude Code receives it. Productivity gains and practical reliability are not established by this evidence.
users
Beginners can use the examples to make a narrow change, such as assigning Ctrl+E to the external editor or removing Ctrl+S from prompt stashing. The page explains both the key notation and where each mapping applies.
Experienced developers get details about context precedence, terminal protocols, non-US layouts, multi-key sequences, queued messages, agent view and diff interfaces. Users trying to change Vim editing motions need the separate Vim settings described on the page; the keybindings file does not remap those motions.
capabilities
The documented controls cover chat input, history, autocomplete, confirmations, tasks, transcripts, settings, plugins, model and effort selection, attachments, scrolling, text selection, agent view, diff interfaces and mod-drawn panes. A mod is a component that can draw interface controls such as panes or the band above the prompt.
Bindings can assign actions, remove defaults with null, or invoke slash commands through command:<name>. For example, command:compact runs /compact. Multi-key sequences allow shortcuts such as Ctrl+K followed by Ctrl+S.
The page also distinguishes normal submission from queueing a message and sending queued messages immediately. These actions have different behavior and version requirements, so choosing the action name matters as much as choosing the key.
Using it
requirements
Applying the examples requires Claude Code and access to edit ~/.claude/keybindings.json. The page does not provide a general minimum version for shortcut customization or a complete installation procedure.
Individual features have minimum versions. For example, chat:queueSubmit requires v2.1.247 or later, chat:sendNow requires v2.1.275 or later, and the effort slider’s increase, decrease and ultracode-toggle actions require v2.1.284 or later.
The terminal must deliver the intended keystrokes. Most terminals do not report the cmd/Super modifier, and terminals without extended-key reporting may deliver Ctrl+Enter as ordinary Enter. The page identifies Ctrl+X Ctrl+S as the portable alternative for chat:sendNow. Non-Latin Ctrl shortcuts can also depend on whether the terminal reports physical key positions through the Kitty keyboard protocol.
mechanism
The JSON file contains a bindings array. Each block names a context and maps keystroke strings to actions, usually written as namespace:action. Setting a mapping to null removes that default shortcut. Optional $schema and $docs fields provide editor-schema and documentation references.
Contexts determine where mappings apply. Chat covers the main input, while contexts such as Confirmation, Select and Agents cover other interfaces. In agent view, an Agents binding takes precedence over a Chat or Global binding on the same key.
Modifiers use plus signs, while spaces separate successive keystrokes. Each keystroke in a sequence must follow the previous one within three seconds. Key names are case-insensitive: K means the same as k, so Shift+K must be written shift+k.
A sequence reserves its first key while its context is active. Reclaiming that key as a standalone shortcut requires removing every active sequence that uses the prefix, including sequences defined in other contexts.
setup
Run /keybindings inside Claude Code to create or open ~/.claude/keybindings.json. Add a binding block for the relevant context and use the action name from the page’s tables. The documentation says saved changes are detected and applied without restarting Claude Code.
For troubleshooting, start Claude Code with --debug and inspect its warnings. Documented problems include invalid JSON, misspelled modifiers, invalid contexts, unknown actions, reserved keys and duplicate bindings within a context.
Whitespace inside key notation matters. For example, ctrl+ k is interpreted as a sequence containing ctrl+ followed by k, so it never matches the intended Ctrl+K. An unknown action is skipped and leaves any default mapping for that key in effect.
example
A minimal form of the page’s external-editor example is: {"bindings":[{"context":"Chat","bindings":{"ctrl+e":"chat:externalEditor","ctrl+s":null}}]}
This configuration assigns Ctrl+E to opening an external editor in the Chat context and removes the default Ctrl+S prompt-stashing shortcut there. It does not change the meaning of Ctrl+S in agent view, where the Agents context uses it to switch session grouping.
The example illustrates why the context belongs alongside the key and action: the same physical shortcut can serve different purposes in different parts of Claude Code. This configuration was not executed.
Assessment & evidence
limitations
Reserved shortcuts cannot be rebound: Ctrl+C, Ctrl+D, Ctrl+M, Ctrl+[, Ctrl+I, Ctrl+H and Caps Lock. Terminal software adds further conflicts, including Ctrl+B with tmux, Ctrl+A with GNU screen and Ctrl+Z with Unix process suspension.
Keyboard focus changes behavior. Unmodified printable characters remain text inside dialog or panel text fields, while the main prompt checks active bindings before inserting characters. Non-printing keys, modified keys and the second keystroke of an existing sequence can still invoke bindings in text fields.
Some valid action names have no effect, including confirm:previousField, permission:toggleDebug and footer:dismiss. Renderer and interface differences also matter: transcript:toggleShowAll applies only in the classic renderer, and the documented legacy diff-viewer actions depend on the viewer and whether the cc-plugin-diff mod is enabled.
Vim mode handles editing separately. Escape can switch from INSERT to NORMAL mode instead of canceling input, and Vim keys cannot be remapped through this file. Agent view also accepts single-keystroke bindings rather than sequences for the external-editor action.
reasoning
Context-specific configuration supports narrow changes: a shortcut can be adjusted for a particular list or dialog without changing every interface that uses the same action. The MessageSelector example demonstrates this by assigning select:accept only within the rewind message list.
That precision creates a practical dependency on focus, version and interface implementation. A valid JSON file alone cannot establish that a shortcut will work in the intended screen. The guide is most useful when the desired action and its active context are identified before choosing a key.
These findings concern control of the application interface. The page provides no evidence that remapping shortcuts improves model reasoning, code quality or task success.
alternatives
Keeping the documented default shortcuts avoids maintaining custom mappings. For command access, the page also shows how command:<name> can connect a shortcut directly to a slash command such as /compact.
For text-editing motions, the page describes Vim mode through the Editor mode setting in /config. It identifies vimInsertModeRemaps as the separate setting for INSERT-mode sequences such as jj to Escape. These settings address editing behavior alongside component-level shortcuts.
The source does not compare other coding assistants or external keymapping tools, so their relative suitability is not assessed.
evidence
The sole source is the complete documentation page at [https://code.claude.com/docs/en/keybindings.md], retained as selected-page.txt. It supplies configuration examples, action tables, defaults, exceptions, migration notes and diagnostic guidance.
The findings describe documented behavior. No commands, configurations or application sessions were executed. The page provides no independent compatibility measurements, productivity benchmarks or runtime test results, and linked pages contribute no additional evidence here.
Access & freshness
costs
The page states no price for Claude Code, subscription or usage charges, or a separate shortcut-customization fee. Those costs are unknown from this evidence.
Actions that toggle fast mode or open usage-related features do not establish the prices or billing effects of those features. The page also provides no measured time savings from customization.
rights
The supplied page contains no explicit license or redistribution permission for its text or configuration examples. Permission to copy, modify or redistribute that material is therefore unknown.
The page also does not establish Claude Code’s software licensing terms. The original documentation remains identifiable at [https://code.claude.com/docs/en/keybindings.md].
freshness
The page was captured on 25 November 2026 at 16:23:55 UTC. Its supplied text gives no publication or last-updated date. The capture date does not establish the latest available Claude Code release.
Version notes materially affect existing configurations. Confirmation bindings for y and n generated before v2.1.280 remain active until removed. From v2.1.283, the message selector and legacy diff file list use Select actions while retaining compatibility with their older action names.
The page includes a v2.1.305 minimum for settings:fixUsage. Users should match individual action requirements and migration notes to their installed version; the source does not establish universal availability across versions.
actions
Choose one action to change, identify its context and check its version requirements. Prefer a key combination the terminal can report reliably, then make the smallest corresponding edit through /keybindings.
For existing configurations, inspect inherited Confirmation mappings carefully. A bare y or n bound there can accept or cancel dialogs that do not display those letters as shortcuts. Remove those mappings if that behavior is unwanted.
If the intended action does not respond, check focus, terminal interception, reserved keys, sequence prefixes, renderer restrictions and debug warnings. For Vim editing changes, use the separate Vim settings identified by the guide.
