9

This question is an exact duplicate of:

May be it is not really a big problem, but it would be a nice addition to the site features if there was a button over or after the code to select all the code. I think it is useful more in cases you use a semi-broken mouse (my case) that forgets that a button is clicked and "unselects" a big part of a big code... And I have to go back to start to select again (Don't ask for my mouse brand because some "Bill" will go after me)...

Independent of my specific problem, in big files it is really useful and many communities use such buttons.

marked as duplicate by koleygr, Community Oct 31 '17 at 23:00

This question was marked as an exact duplicate of an existing question.

  • 3
    I sure would like such a feature, not depending on the browser. – egreg Oct 29 '17 at 23:57
  • @jfbu thanks... I am going to flag the post as duplicate... It makes sense that more people (than just me) are thinking often this request... (I hope that it will added some time as a default ability without extras) – koleygr Oct 31 '17 at 21:58
  • @koleygr In turn I am flagging my own as duplicate of tex.meta.stackexchange.com/questions/821/… which was earlier and had gotten an answer. Thanks for reviving the topic! – user4686 Nov 1 '17 at 6:40
4

For firefox there is a nice add-on to add this missing feature https://addons.mozilla.org/en-US/firefox/addon/copy-code/?src=api

enter image description here

With this add-on every code block has a little button at the top right which copies the whole block to your clipboard.

  • 1
    Thanks... I didn't knew that and I am going to test it on my linux... But I think it would be nice to don't have to add external tools for a feature that the site could easily offer... I will test soon and sure use it until (if ever) added as a site feature! Thanks again. – koleygr Oct 29 '17 at 21:58
  • 2
    @koleygr totally agree, it would be much better if the site would have this feature. – user36296 Oct 29 '17 at 22:07
3

The Stack Overflow Extras (SOX) script provides this functionality through a very minimal icon in the top-right corner of a code display:

enter image description here

I have the script activated via Tampermonkey in Chrome, but it is supported in other browsers as well.

  • Thanks @Werner... I didn't knew that. – koleygr Oct 31 '17 at 21:53

Not the answer you're looking for? Browse other questions tagged .