19
\$\begingroup\$

Often, I want to highlight & copy the contents of a single posted code block so I can paste it into my IDE for a better look or into my answer for editing. This gets awkward especially if there's scrolling involved -- I usually overshoot the end and trying to shift-arrow back into the code block just overshoots in the other direction.

\$\endgroup\$
  • 6
    \$\begingroup\$ This has already been requested on the main meta: Shortcut for copying posted code from Stack Overflow. Don't hold your breath… \$\endgroup\$ – Gilles 'SO- stop being evil' Jan 10 '12 at 0:09
  • 1
    \$\begingroup\$ Indeed. The feeling seems to be that the post has too much code if that was needed. Granted, CR has more code on average than most, but I'm not sure this will go anywhere if the old request has been active for over two years. \$\endgroup\$ – Michael K Jan 10 '12 at 13:01
  • 4
    \$\begingroup\$ @Gilles Even I don't picture it being that useful on SO, but I miss it on CR. \$\endgroup\$ – Paul Martel Jan 10 '12 at 22:39
4
\$\begingroup\$

I agree, so I wrote a bookmarklet that puts a copy button on top of every code block.

It is going through Code Review now: Bookmarklet for selecting code snippets on Code Review

Some excellent suggestions were made and it got turned into a CR repo :

http://codereviewcommunity.github.io/CodeReviewBookmarklet/

\$\endgroup\$
  • \$\begingroup\$ If I get around to finishing the indentation fixer (see meta.codereview.stackexchange.com/questions/1376/…) would you be interested in merging it, rather than having another bookmarklet floating around separately? \$\endgroup\$ – sqykly Jan 12 '14 at 16:10
  • \$\begingroup\$ Yeah, absolutely. \$\endgroup\$ – konijn Jan 13 '14 at 16:53
  • 1
    \$\begingroup\$ I don't care if I'm over 2 years late - thank you! \$\endgroup\$ – Raystafarian Apr 25 '16 at 15:44

You must log in to answer this question.

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