Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

I noticed that marking, copying and pasting code snippets in StackOverflow is a bit cumbersome - even if it is only one line of code, as in the following exampleexample (there is a horizontal scrollbar - try to copy the entire line and you'll see what I mean):

enter image description here

How about adding a "Copy to clipboard" button, like it is done for example in Microsoft's MSDN and some other developer sites?

enter image description here

In this example, after clicking "allow access" once, the entire source code has been transferred to the clipboard and can now simply be pasted by using Ctrl+V into the source editor of your choice.

N.B. While this MSDN example seam to work in IE/Edge only, CodeProject does it like this, which I've tested with IE and with Chrome successfully:

enter image description here

Please consider, if some of you don't need to copy the entire code, it is still useful for many others.

I noticed that marking, copying and pasting code snippets in StackOverflow is a bit cumbersome - even if it is only one line of code, as in the following example (there is a horizontal scrollbar - try to copy the entire line and you'll see what I mean):

enter image description here

How about adding a "Copy to clipboard" button, like it is done for example in Microsoft's MSDN and some other developer sites?

enter image description here

In this example, after clicking "allow access" once, the entire source code has been transferred to the clipboard and can now simply be pasted by using Ctrl+V into the source editor of your choice.

N.B. While this MSDN example seam to work in IE/Edge only, CodeProject does it like this, which I've tested with IE and with Chrome successfully:

enter image description here

Please consider, if some of you don't need to copy the entire code, it is still useful for many others.

I noticed that marking, copying and pasting code snippets in StackOverflow is a bit cumbersome - even if it is only one line of code, as in the following example (there is a horizontal scrollbar - try to copy the entire line and you'll see what I mean):

enter image description here

How about adding a "Copy to clipboard" button, like it is done for example in Microsoft's MSDN and some other developer sites?

enter image description here

In this example, after clicking "allow access" once, the entire source code has been transferred to the clipboard and can now simply be pasted by using Ctrl+V into the source editor of your choice.

N.B. While this MSDN example seam to work in IE/Edge only, CodeProject does it like this, which I've tested with IE and with Chrome successfully:

enter image description here

Please consider, if some of you don't need to copy the entire code, it is still useful for many others.

edited title
Link
Matt
  • 26.9k
  • 13
  • 14

Copy source to clipboard - can we make this user-friendlier?

Updated question with example
Source Link
Matt
  • 26.9k
  • 13
  • 14

I noticed that marking, copying and pasting code snippets in StackOverflow is a bit cumbersome. - even if it is only one line of code, as in the following example (there is a horizontal scrollbar - try to copy the entire line and you'll see what I mean):

enter image description here

How about adding a "Copy to clipboard" button, like it is done for example in Microsoft's MSDN and some other developer sites?

enter image description here

In this example, after clicking "allow access" once, the entire source code has been transferred to the clipboard and can now simply be pasted by using Ctrl+V into the source editor of your choice.

N.B. While this MSDN example seam to work in IE/Edge only, CodeProject does it like this, which I've tested with IE and with Chrome successfully:

enter image description here

Please consider, if some of you don't need to copy the entire code, it is still useful for many others.

I noticed that marking, copying and pasting code snippets in StackOverflow is a bit cumbersome.

How about adding a "Copy to clipboard" button, like it is done for example in Microsoft's MSDN and some other developer sites?

enter image description here

In this example, after clicking "allow access" once, the entire source code has been transferred to the clipboard and can now simply be pasted by using Ctrl+V into the source editor of your choice.

N.B. While this MSDN example seam to work in IE/Edge only, CodeProject does it like this, which I've tested with IE and with Chrome successfully:

enter image description here

Please consider, if some of you don't need to copy the entire code, it is still useful for many others.

I noticed that marking, copying and pasting code snippets in StackOverflow is a bit cumbersome - even if it is only one line of code, as in the following example (there is a horizontal scrollbar - try to copy the entire line and you'll see what I mean):

enter image description here

How about adding a "Copy to clipboard" button, like it is done for example in Microsoft's MSDN and some other developer sites?

enter image description here

In this example, after clicking "allow access" once, the entire source code has been transferred to the clipboard and can now simply be pasted by using Ctrl+V into the source editor of your choice.

N.B. While this MSDN example seam to work in IE/Edge only, CodeProject does it like this, which I've tested with IE and with Chrome successfully:

enter image description here

Please consider, if some of you don't need to copy the entire code, it is still useful for many others.

added 57 characters in body
Source Link
Matt
  • 26.9k
  • 13
  • 14
Loading
added 130 characters in body
Source Link
Matt
  • 26.9k
  • 13
  • 14
Loading
Source Link
Matt
  • 26.9k
  • 13
  • 14
Loading