Forum Discussion
I realised my original post was slightly ambiguous - I mean a comment in the code, as opposed to a code collaborator comment, which it could have been read as.
Whether it's a URL is probably irrelevant - it's basically copying to the clipboard from code while you're reviewing it. As soon as you click, it opens a comment box. If you drag select some text, when you release, it de-selects the text.
TL/DR: I really want to be able to do this too. Being able to copy a piece of in-review code to the clipboard would be immensely useful right now. Please please please give us a way to do this.
----
This isn't the first time I've wished for this functionality, but my case at hand is a doozy.
I'm reviewing a second upload a junior engineer made in response to my comment on a first upload.
I asked him to move a variable declaration closer to where it was used, into a 2 levels of fancy-brace smaller scope, to start steering him away from the spaghettti that was evolving. His second upload was an exponentially worse version that rewrote the method and five others.
I'd like to copy his first upload to a different editor so I can send him an e-mail showing what I expected him to do. But to do that, I'm going to have to retype the whole method. He's nine and a half time zones away, so I can't ask him to shelve the change list for me.
I doubt I'm the only one who's had an OMG moment like this and wanted to copy a chunk of code that was under review. :-)
- jerry_curry8 years agoNew Contributor
I found my own workaround.
Switching from side-by-side to over-under view, I was able to copy an approximation of what I needed. The "approximation" included line numbers and review comments, but removing them was not as painful as typing the method would have been.
Related Content
- 9 years ago
- 3 years ago
- 12 years ago
- 3 years ago
- 11 years ago
Recent Discussions
- 3 months ago