[FEATURE] VS Code extension: click-to-copy affordance on code blocks in Claude responses

Status Closed — not planned
Maintainer reply None cached
Activity 6 comments · opened Apr 15, 2026 · closed Jul 5, 2026

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:

  1. 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.
  2. 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)

View original on GitHub ↗

5 Comments

devakm · 5 months ago

This is really annoying. Looking forward to the fix.

QuoNada · 5 months ago

I use the advanced paste of PowerToys as a temporary plan

ChrisHannan-zl · 4 months ago

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

github-actions[bot] · 3 months ago

Closing for now — inactive for too long. Please open a new issue if this is still relevant.

rocksoftvn · 2 months ago

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:

  • Codex-family (Sol, Terra) — mỗi câu trả lời có sẵn dãy icon, gồm nút click-copy trên từng code block.
  • Claude-family (Opus, Fable qua extension Claude Code) — render kiểu terminal/CLI, không có dãy icon copy.

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:

  • Icon copy hiện khi hover ở góc trên phải block, bấm để copy toàn bộ nội dung, kèm xác nhận "Copied" thoáng qua.
  • (Tùy chọn) Click bất kỳ đâu trong block để copy.

Đâ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:

  • Claude Code: cho tách session chat ra thành cửa sổ (window) riêng — rất tiện để theo dõi nhiều agent song song — nhưng thiếu dãy icon copy trên câu trả lời.
  • Codex: có dãy icon copy tiện lợi trên mỗi câu trả lời — nhưng chưa cho tách session ra thành cửa sổ riêng.

Đề 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.

Showing cached comments. Read the full discussion on GitHub ↗