Feature Request: Support feeding selections to CC+vscode via "Code Actions"

Status Fixed / completed
Maintainer reply None cached
Activity 3 comments · opened Jul 2, 2025 · 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..

!Image

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_mentions may 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.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗