Bug 111627 - [typing] Toggle comment applied to a complete method
Summary: [typing] Toggle comment applied to a complete method
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.2   Edit
Hardware: PC Linux
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-05 11:24 EDT by Maxime Daniel CLA
Modified: 2007-06-22 10:02 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maxime Daniel CLA 2005-10-05 11:24:00 EDT
To comment out a complete method, current options are to:
- put a /* before the method, go to its end, then put a */ (if you're lucky and
  no block comment gets in your way);
- select the complete method then invoke toggle comment on the selection.

I may miss another way to do it conveniently, but I would appreciate to be able
to do this just by right clicking on the method in the outline view and invoking
a 'toggle method comment' kind of command (just like 'Add Comment'). The best
possible result would probably be the one we get with the second bullet above.
Comment 1 Dani Megert CLA 2005-10-06 03:28:39 EDT
Simply delete the method. You can get it back using local history or CVS ;-)
Comment 2 Maxime Daniel CLA 2005-10-06 04:12:28 EDT
Well, this trick works for any set of lines indeed. But it seems to me that
the toggle comment helps quite often... Or maybe I'm getting into bad habits,
and this Eclipse workbench simply reveals my laziness ;-)
Thx for the answer anyway.
Comment 3 Dani Megert CLA 2007-06-22 09:59:27 EDT
Get rid of deprecated state.