Skip to content

Issue #2 - [FEATURE] Add copy button for code blocks #6

@zenocross

Description

@zenocross

Description

Code blocks in chat messages lack a convenient way to copy their content. Users must manually select and copy code.

Current Behavior

  • Code blocks display syntax-highlighted code
  • No copy functionality available
  • Users must manually select text to copy

Expected Behavior

  • Copy button appears when hovering over code blocks
  • One-click copying of entire code block content
  • Visual feedback on successful copy

Use Cases

  • Quick code snippet copying
  • Improved developer experience
  • Reduces manual selection errors

Proposed Solution

Add a copy button overlay that:

  • Appears on hover over code blocks
  • Copies code content to clipboard on click
  • Shows "Copied!" feedback briefly

Download https://cap.so/ to record your screen (use Studio mode). Export as an mp4, and drag and drop into an issue comment below.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureAuto-created label

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions