Bug 55809 - Add Code formatter option to format only Javadoc comments
Summary: Add Code formatter option to format only Javadoc comments
Status: RESOLVED DUPLICATE of bug 52115
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-23 19:51 EST by Albert Lin CLA
Modified: 2004-03-24 06:25 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 Albert Lin CLA 2004-03-23 19:51:07 EST
Using Eclipse 3.0 M7

In the new code formatter, you can enable/disable comment formatting. However, there 
should be an option so that the code formatter formats ONLY Javadoc comments but 
NOT normal comments (i.e., single line comments beginning with // and multi-line 
comments /*  */).

The reason for this is that normal comments are often used to comment out blocks of 
code, or provide inline notes. When the code formatter attempts to wrap and reformat 
these normal comments , it often completely destroys the original spacing -- which may 
have been significant!

This is especially apparent if you comment out a block of code and then run the code 
formatter with comment formatting on.  All the spacing and indentation of the commented-
out code is destroyed.
Comment 1 Dani Megert CLA 2004-03-24 06:25:00 EST

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