-13

How do I contact Stack Overflow with a suggestion? I was going to ask this question in Meta, but I see it already exists: Select All / Copy All Button for Code

  1. Someone visits Stack Overflow.
  2. They see an answer.
  3. The answer has code.
  4. They need the code in their IDE.

Currently this take about 3-4 actions from the user:

  • They select all text (either click-and-drag cursor or double-click: two actions).
  • They copy to the clipboard (either Ctrl + C or right-click > Copy: two more actions).

If there was a copy-to-clipboard button next to all code snippets (```) then users would need to take only one action (click the button) to get the code onto the clipboard, saving everyone massive time overall.

6
  • 4
    I think that they already know full well about this suggestion, and their actions or non-actions probably reveal its importance to them. Commented Dec 22, 2021 at 2:35
  • 4
    This is really just a duplicate of the question you linked. You should upvote that question, and if you really want the button yourself, use the userscript linked in the answers there or write one yourself
    – Joundill
    Commented Dec 22, 2021 at 2:54
  • 1
    You can also give this question on MSE an upvote too.
    – Joundill
    Commented Dec 22, 2021 at 2:56
  • @Joundill Thanks! If I write one myself, then I have to advertise for others to benefit from my labor. If StackOverflow writes it, all users benefit immediately. Is it not less work overall for all humans for the website to change than for users to write extensions and share those extensions and maintain those extensions as the website changes? Commented Dec 22, 2021 at 3:12
  • If you write one yourself, definitely link to it in an answer to those two questions. Others will appreciate the effort you've put in
    – Joundill
    Commented Dec 22, 2021 at 3:33
  • Workaround: Use a macro keyboard (or some software solution, like AutoIt - though that usually doesn't work across Windows and Linux (unlike a macro keyboard)). The Stack Overflow (physical) 3-key keyboard is fully programmable through QMK and is suitable for this. So is an Arduino Leonardo (or the equivalent, including most boards based on the ATmega32U4). Commented Dec 22, 2021 at 13:04

1 Answer 1

-5

This answer says copy-to-clipboard "simply will not be implemented due to security concerns".

There is a Chrome extension and a Firefox extension in this GitHub repository (from this answer).

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