Bug 47757

Summary: improve breaking off single line comments in javaeditor
Product: [Eclipse Project] JDT Reporter: Patrice Kerremans <patrice_kerremans>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3    
Version: 3.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

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 ***