claude-code - 💡(How to fix) Fix Feature request: Shift+Arrow text selection in prompt input [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#52305Fetched 2026-04-24 06:10:41
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×3commented ×1

Add support for standard Shift+Arrow text selection in the prompt input box, similar to any modern text editor.

Root Cause

Add support for standard Shift+Arrow text selection in the prompt input box, similar to any modern text editor.

RAW_BUFFERClick to expand / collapse

Summary

Add support for standard Shift+Arrow text selection in the prompt input box, similar to any modern text editor.

Current behavior

The prompt input supports word-wise navigation/deletion (Alt+B, Alt+F, Ctrl+W, Ctrl+K, Ctrl+U), but there is no way to visually select a range of text and then replace or delete it. Selection actions (selection:extendLeft, etc.) exist but only apply to the Scroll context, not the input box.

Requested behavior

In the prompt input:

  • Shift+Left / Shift+Right — extend selection by character
  • Ctrl+Shift+Left / Ctrl+Shift+Right — extend by word
  • Shift+Home / Shift+End — extend to line edges
  • Shift+Up / Shift+Down — extend by line (for multi-line prompts)
  • Typing / Backspace / Delete / paste replaces the selection

Configurability via ~/.claude/keybindings.json would be a plus.

Why

Editing long or multi-line prompts is currently tedious — the only way to replace a phrase mid-prompt is to repeatedly Ctrl+W or manually backspace. Shift+Arrow selection is muscle memory for most developers and would significantly improve prompt authoring ergonomics.

Environment

Claude Code on Windows 11, running inside the VS Code integrated terminal. Same behavior reported from Windows Terminal.

extent analysis

TL;DR

Implementing Shift+Arrow text selection in the prompt input box requires modifying the existing keybinding handlers to support selection actions.

Guidance

  • Review the current keybinding handlers for selection:extendLeft and other selection actions to understand how they are applied to the Scroll context.
  • Investigate how to extend the selection actions to the input box context, potentially by adding new keybindings or modifying the existing ones.
  • Consider adding configurability via ~/.claude/keybindings.json to allow users to customize the keybindings.
  • Test the new keybindings with different input scenarios, such as single-line and multi-line prompts, to ensure correct behavior.

Example

No code snippet is provided as the issue does not contain sufficient technical details about the current implementation.

Notes

The solution may require changes to the underlying codebase, and the exact implementation details are not provided in the issue. Additionally, the issue is specific to the Claude Code application running on Windows 11, and the solution may not be applicable to other environments.

Recommendation

Apply workaround: Implement custom keybindings for Shift+Arrow text selection in the prompt input box, as the issue is specific to the Claude Code application and a fixed version is not mentioned.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING