Bug 47757 - improve breaking off single line comments in javaeditor
Summary: improve breaking off single line comments in javaeditor
Status: RESOLVED DUPLICATE of bug 47620
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-29 08:30 EST by Patrice Kerremans CLA
Modified: 2004-01-12 11:59 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrice Kerremans CLA 2003-11-29 08:30:10 EST
when breaking off a single line comment in the current java editor this is the 
result:

single line comment + cursor postition (|) before typing enter:

//this is my single line | comment that has become too long

what happens when we type enter now:

//this is my single line 
|comment that has become too long

So I need to type the additional '// '.  I know it sound lazy :s, but as this 
work well for the multiline comments I wondered if you could  do this for SL 
comments as well.

There two possibilities either you add the '// ' in front of the second line:

// this is my single line
// |comment that has become too long

Either you convert the single line comment into a multi line comment 
automatically:

/*
 * this is my single line
 * |comment that has become too long
 */

Probably the choice of keeping the SL comment style or converting it to a ML 
comment should be an option left to the developer.
Comment 1 Dani Megert CLA 2004-01-12 11:59:07 EST

*** This bug has been marked as a duplicate of 47620 ***