[FEATURE] VS Code extension: click-to-copy affordance on code blocks in Claude responses
Summary
In the Claude Code VS Code extension, code blocks rendered in Claude's responses have no click-to-copy affordance. Copying requires manually selecting the text with the mouse, which is slow and error-prone for multi-line snippets.
Current behavior
When Claude outputs a fenced code block in the VS Code extension chat panel, the block renders with syntax highlighting but no copy button and no click-to-copy behavior. To copy a snippet I have to click, drag-select the full range, then Cmd+C.
Expected behavior
Either (or both) of:
- Copy button on hover — a small copy icon appears in the top-right of the code block when hovered, click to copy the full contents, with a brief "Copied" confirmation.
- Click-anywhere-to-copy — clicking anywhere inside the block copies its contents and shows a brief "Copied" confirmation.
This matches the convention in the Claude.ai web app, GitHub, ChatGPT, and essentially every modern chat UI that renders code.
Why it matters
Copy-paste from Claude into the editor is one of the primary workflows in the extension. Missing the copy affordance is currently the biggest ergonomic gap compared to both the web app and competing coding assistants.
Environment
- Claude Code VS Code extension
- macOS (Darwin 25.3.0)
Showing cached comments. Read the full discussion on GitHub ↗
5 Comments
This is really annoying. Looking forward to the fix.
I use the advanced paste of PowerToys as a temporary plan
WHen I use Claude Code in VSCode, I have no ability to select a response and copy it. I am using an array of AI's to do advanced development on my platforms. I've added yesterday Claude Code as the Audit layer. When I need to copy his results into my other AI that is the CTO role or other AI personas in my array I simply do not have this option. I have to scroll highlight and drag down to the end. THis is very inefficient. To the level that I am considering it a true bug. Perhaps because it really bugs me that such a beautiful and elegant chat / coding interface in VSCode is lacking this clearly very important and I would say standard UI component. The old copy and paste ability to quickly move info around. Perhaps even a download icon so it can drop a txt file or .md file on my desktop - or enable this automatically after every response. Yes that would be great .
Ok. That's all. In general I am liking Claude. Takes more time that GPT but I like the level of quality responses.
bravo to the teams
Closing for now — inactive for too long. Please open a new issue if this is still relevant.
Feedback: Claude Code VS Code extension — code block UX
Bối cảnh người dùng
Vận hành một lab multi-AI với hai họ công cụ chạy song song trong VS Code:
Luồng làm việc là relay thủ công giữa các agent, nên thao tác copy code lặp lại rất nhiều lần trong ngày. Việc thiếu nút copy làm mỗi lần phải bôi chọn + Cmd/Ctrl+C, chậm và dễ chọn hụt với snippet nhiều dòng.
Đề xuất 1 — Nút copy trên mỗi code block
Thêm click-to-copy cho code block trong panel chat của extension:
Đây đã là quy ước ở web app Claude.ai, GitHub, ChatGPT và hầu hết chat UI hiện đại render code. Hiện đã có feature request cộng đồng cho đúng việc này:
Nếu triển khai kèm một VS Code command riêng (ví dụ "Claude Code: Copy last code block"), người dùng còn rebind được phím tắt qua Keyboard Shortcuts editor.
Đề xuất 2 — Cân bằng tính năng chéo giữa hai công cụ
Quan sát từ việc dùng song song, mỗi bên mạnh một nửa và thiếu nửa kia:
Đề nghị: Claude Code bổ sung dãy icon (bắt đầu từ nút copy) để có cả hai thế mạnh — vừa multi-window, vừa copy nhanh.
Ưu tiên (góc nhìn người dùng)
Thấp về độ phức tạp kỹ thuật, cao về tần suất chạm phải: thao tác copy diễn ra hàng chục lần mỗi ngày trong luồng relay nhiều agent, nên một nút copy tiết kiệm ma sát đáng kể mỗi phiên.