Skip to content

Feature request: Add copy-to-clipboard button for fenced code blocks #166

@sank96

Description

@sank96

Hi @mjbvz,

It would be very useful to have a copy-to-clipboard button for fenced code blocks in the Markdown preview.

One of the nicest parts of GitHub's current Markdown experience is that code snippets can be copied with a single click. Since this extension aims to make VS Code's Markdown preview feel much closer to GitHub, adding a copy button for code blocks would make the experience significantly more practical for everyday use.

This would be especially helpful when reading:

  • READMEs
  • setup instructions
  • shell commands
  • config snippets
  • code examples in docs

Related issue in the extension pack repo:

I'm opening this here because this repo seems to be the implementation repo for the actual preview styling extension. If this belongs in a different repo, feel free to redirect me.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions