Copy Code Snippet
The new code snippets look great. I'd like the ability to easily copy an entire snippet. Often they're collapsed, and require expanding, mouse-selecting the entire thing (don't miss something!) and then copying. This should be a single button inside the snippet window. (top-right, opposite the title is my preference).
Fabrice BAUZAC commented
I'm a programmer, and we programmers routinely need to send long text things to other programmers.
Microsoft Teams seems to be very impractical in that regard:
- The text is constrained in a rather short width
- There is apparently no easy way to copy-paste the text so that I can analyze it in a programmer's editor where I have full and appropriate functionality for such kind of text
- In the case of text that span over more than the screen height, the horizontal scroller is outside view. So, whenever I need to scroll the line I'm reading right (to see the actual text) by a width-wide amount, I need to first scroll down to see the horizontal scroller (and my line goes out of view), then scroll horizontally approximately to what I think will be the next horizontal location I want to go to in my line, then go back up to the line I needed to see in the first place. Maybe only to see that I need to scroll right even more to see more text... And repeat for each long line in the text.
Is there any secret technique to ease the life of poor programmers? Any practical way to copy/paste the text to my text editor would be awesome...
Thanks in advance!
Micah Rairdon commented
Definitely would be handy!
Josh Frankland commented
Copying the code is a huge pain for code longer than a few lines and seems like a feature that is actually worse than not using it at all. It's more work to copy from the Code snippet than to send a file or just paste it into a message, which you can at least right-click->Copy.
Raúl Correia commented
I think this should be implemented aswell
Ryan Wakefield commented
This is definitely a necessity with the code snippets. I mean, I got sent 107 lines and I had to highlight all of them to copy the code. I know that is small, but just annoying I can't click a simple button to say "copy code".