Bug 340716 - [typing] A command to comment a line (as in CTRL+7) and copy it to clipboard
Summary: [typing] A command to comment a line (as in CTRL+7) and copy it to clipboard
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.7   Edit
Hardware: All All
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2011-03-22 20:51 EDT by Nobody - feel free to take it CLA
Modified: 2011-03-23 14:10 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.