Bug 579318

Summary: Enter key in a comment line should create a new comment line
Product: [Eclipse Project] JDT Reporter: Gualtiero Testa <gualtierotesta>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: jjohnstn, thatnitind
Version: 4.23   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:

Description Gualtiero Testa CLA 2022-03-18 07:13:27 EDT
In a Java editor, having a line like this one

  // this is a comment

and the cursor position is before the word comment, when pressing the enter key the result is the following:

  // this is a 
  comment

It would be nice to have instead the following behaviour:

  // this is a 
  // comment


In other words, breaking a comment line should create a new comment line