Add click-to-copy buttons for code blocks and commands in terminal output

Resolved 💬 3 comments Opened Feb 27, 2026 by qbikle Closed Mar 3, 2026

Feature Request

When Claude Code outputs commands or code blocks in the terminal, there's no easy way to copy them. Long commands wrap at the terminal width and break when pasted.

Problem

  • Long commands displayed in the terminal get line-wrapped
  • When users copy-paste these wrapped commands, they break into multiple lines/commands
  • This is especially painful for commands with long URLs, multiple flags, or multi-line snippets
  • Users end up manually fixing pasted commands every time

Proposed Solution

Add a click-to-copy button (or keyboard shortcut) next to code blocks and commands in terminal output, similar to how GitHub/docs sites show a copy icon on code blocks.

Current Workaround

Using pbcopy (macOS) to pipe commands directly to the clipboard, but this requires the assistant to proactively do it and doesn't work for all platforms.

Why This Matters

This is a frequent friction point when working with Claude Code interactively — especially for DevOps/infra work where commands tend to be long (kubectl, docker, AWS CLI, etc.).

🤖 Filed via Claude Code on behalf of a user

View original on GitHub ↗

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