Add setting to disable auto-attach of IDE selection context
Resolved 💬 3 comments Opened Apr 10, 2026 by veinnotnice Closed Apr 14, 2026
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
When text is selected in the editor, the Claude Code VS Code extension automatically attaches it as context (shown as "N lines selected" in the input box). There is no way to disable this by default — you have to click the eye-slash toggle every time.
In large codebases, I frequently have text selected from navigating/reading code, and it gets attached unintentionally, adding noise to prompts.
Proposed Solution
Add a VS Code extension setting like:
"claudeCode.autoAttachSelection": false
When false, editor selections are not auto-attached. Users can still manually attach selections via Ctrl+Esc or the attachment button.
Alternative Solutions
_No response_
Priority
Medium - Would be very helpful
Feature Category
Configuration and settings
Use Case Example
_No response_
Additional Context
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗