Feature Request: Support feeding selections to CC+vscode via "Code Actions"
Resolved 💬 3 comments Opened Jul 2, 2025 by t1mmen Closed Nov 30, 2025
What:
I'd love the ability to attach line selections (or even files & folders) from vscode to Claude Code directly, ala..
Why:
- CC _seems_ to only know whatever I have selected in a single file.
- If the code path to work on spans multiple files, passing along _just_ the code I want to focus on is frustrating.
@file_mentionsmay be too much (especially for very large files)- Copy/pasting code directly to CC doesn't come with file&line referencing, e.g
filename#L10-20
Outcome:
This would make it much easier to feed CC multiple code snippets from multiple files, with minimal context bloat and wasted tokens.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗