Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 340716

Summary: [typing] A command to comment a line (as in CTRL+7) and copy it to clipboard
Product: [Eclipse Project] JDT Reporter: Nobody - feel free to take it <nobody>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: enhancement    
Priority: P5 CC: daniel_megert, markus.kell.r, nobody, prakash, remy.suen
Version: 3.7Keywords: helpwanted
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Nobody - feel free to take it CLA 2011-03-22 20:51:18 EDT
Build Identifier: 20110218-0911

I would like a command to copy a line to the clipboard and also comment it (as in CTRL+7). I would use it as an alternative to the Cut command as it is not rare that programmers comment a line rather than delete it. It should make sense to have a copy+comment command.

SMC

Reproducible: Always
Comment 1 Remy Suen CLA 2011-03-22 22:01:42 EDT
What programming language are you talking about here?
Comment 2 Prakash Rangaraj CLA 2011-03-23 01:35:54 EDT
Assuming its Java. Moving to JDT
Comment 3 Dani Megert CLA 2011-03-23 04:04:12 EDT
I don't think this is often used - at least I've never felt the need for it and I've never seen it in an editor.

Feel free to provide a good quality patch if you really need this.
Comment 4 Nobody - feel free to take it CLA 2011-03-23 04:40:40 EDT
Yes, the language is Java.

I agree you may have not used it but the fact that it is not seen in any editor doesn't mean it shouldn't be considered.

Regards,
SMC
Comment 5 Markus Keller CLA 2011-03-23 09:18:47 EDT
I don't think this is general enough to justify a separate command.
See bug 8519 for a general macro facility.
Comment 6 Dani Megert CLA 2011-03-23 14:10:49 EDT
(In reply to comment #5)
> I don't think this is general enough to justify a separate command.
> See bug 8519 for a general macro facility.

+1.