Support adding selected lines to Claude prompt #40211
tv42
started this conversation in
Feature Requests
Replies: 5 comments
|
+1 I’m running into the same issue, not being able to have Claude work directly on selected lines really slows things down. Adding this feature would be a huge quality-of-life boost and make using Claude so much more productive. |
0 replies
|
+1. This is the biggest blocker preventing me from switching to Zed full time. As of now, it's very difficult to use in codebases with large files. |
0 replies
|
The Cursor UX is the best here. As soon as you select a section of code in the editor, an "Add to Chat" shows up. Please help bring this to Zed! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



Uh oh!
There was an error while loading. Please reload this page.
Apparently, Claude Code lets you refer to specific lines, not just files, with
@filename#L100-110. I can't find official docs about this, but it's done in VSCode (via https://cuong.io/blog/2025/06/23-claude-code-ide-vs-code) and elsewhere (https://github.com/sortafreel/select-copy-line/blob/02d630b535e0be2c2f2ed69fe3990c9764c4e2b2/src/extension.ts).Being able to tell Claude to "rewrite this to return error instead of panicking" would be useful. Kind of like Zed's inline assistant, but I don't see a way to hook that one up to Claude Code.
All reactions