Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 333221 - [typing] Join Comments in Java
Summary: [typing] Join Comments in Java
Status: CLOSED DUPLICATE of bug 179782
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.7   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-26 14:21 EST by Andres Gomez Casanova CLA
Modified: 2010-12-27 14:18 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andres Gomez Casanova CLA 2010-12-26 14:21:40 EST
Build Identifier: 

When I use the 'Join Line' option (Ctrl + Alt + j) the single-line comments in Java should be joint by deleting the slashes of the second line.
I mean, if you have:

// First Line
// Second Line

and you call the 'join line' option, Eclipse should delete the slashes of the second line.

// First Line Second Line

Currently, the result of this operation is this

// First Line // Second Line

This is useful when re-factoring, and when the comments are changed after a formatting. I know that Eclipse cannot know when to join two single-line comments, but the 'join lines' option should provide this functionality.

Reproducible: Always
Comment 1 Deepak Azad CLA 2010-12-27 14:18:07 EST

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