Feature request: Code copy button on Markdown code snippets

This is a minor quality-of-life thing but it would be nice to be able to instantly copy the contents of code blocks. It makes documentation a bit easier to use.

For example:

44 Likes

Hi @yarian,

Thanks for this feedback; great idea! We’re always working to improve GitHub and the GitHub Community Forum, and we consider every suggestion we receive. I’ve logged your feature request in our internal feature request list. Though I can’t guarantee anything or share a timeline for this, I can tell you that it’s been shared with the appropriate teams for consideration.

Cheers!

9 Likes

I second this request.  I use the wiki to store bits of helpful troubleshooting code and what not and being able to click a button to copy it vs the mouse would be extremely handy.

9 Likes

I’d like to copy that!
https://github.com/styled-components/styled-components#badge

3 Likes

I’d like to have it too.

Definitely a much needed and easy to implement feature for Github! :grinning:

+1. Our users are requesting this as we have a lot of ‘code snippets’