Bug 579318 - Enter key in a comment line should create a new comment line
Summary: Enter key in a comment line should create a new comment line
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.23   Edit
Hardware: All Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-18 07:13 EDT by Gualtiero Testa CLA
Modified: 2022-03-18 15:14 EDT (History)
2 users (show)

See Also:


Attachments

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