Bug 73580 - Code formatter left justifies comments even when format comments is disabled
Summary: Code formatter left justifies comments even when format comments is disabled
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: Macintosh All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 79360 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-09-09 12:18 EDT by Nick CLA
Modified: 2009-08-30 02:19 EDT (History)
2 users (show)

See Also:


Attachments
Code formatter preferences (18.81 KB, text/xml)
2004-09-16 10:09 EDT, Nick CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nick CLA 2004-09-09 12:18:27 EDT
/*
       A B D G
alpha  x
beta     x
delta      x
gamma        x
*/

When I format the code, the first line of the comment, which contains the column
headers, is suddenly left justified to start on the same column as the rest of
the comment.

I had specifically told the code formatter not to format comments at all.
Comment 2 Nick CLA 2004-09-16 10:09:22 EDT
Created attachment 14574 [details]
Code formatter preferences

Here are my formatter preferences.
Comment 3 Nick CLA 2004-09-16 10:13:46 EDT
Build id: 200406251208

There were no messages in the .log file. 
Comment 4 Nick CLA 2004-09-16 10:19:01 EDT
This will also cause 

/*
    alpha
        beta
            delta
                gamma
*/

to be reformatted as
/*
alpha
beta
delta
gamma
*/

The code will move to the normal indent level for code of that block level, but any indent formatting 
already done to this data is ignored.
Comment 5 Dani Megert CLA 2004-09-17 08:19:25 EDT
Just to confirm: I see a space in front of alpha, beta,... after formatting.
This happens when comment formatting is off.
Comment 6 Olivier Thomann CLA 2004-09-17 16:03:35 EDT
This will be fixed when reviewing the formatting of comments.
Comment 7 Olivier Thomann CLA 2004-11-24 09:52:46 EST
*** Bug 79360 has been marked as a duplicate of this bug. ***
Comment 8 paul stanton CLA 2004-11-24 18:36:23 EST
comment #6 .. when is that?
Comment 9 Olivier Thomann CLA 2004-11-25 09:56:11 EST
Don't know yet. This will be done when retrieving all the comment formatting
done by JDT/UI. Right now we are busy on the 1.5 front.
A workaround is to add '*' in front of each line of your comment.
Comment 10 Dani Megert CLA 2004-11-25 10:31:12 EST
>Don't know yet. This will be done when retrieving all the comment formatting
>done by JDT/UI.
What is missing? Christof said everything has been prepared to be adopted isn't
that true?
Comment 11 Olivier Thomann CLA 2004-11-25 10:36:27 EST
What is missing? Time.
This will be on the list when 1.5 is behind us. I guess. For now this is not on
the M4 plan.
I was not aware that the transition from JDT/UI to JDT/Core was ready.
Comment 12 paul stanton CLA 2004-11-25 21:09:17 EST
comment #9 .. this is not a work around. i use /* ... */ to comment out blocks
of code. i don't think i'll be adding * before each of 100 lines of code.
Comment 13 Philipe Mulet CLA 2005-04-07 09:44:22 EDT
Deferring post 3.1
Comment 14 paul stanton CLA 2005-12-13 17:52:27 EST
time for a review?
Comment 15 Denis Roy CLA 2009-08-30 02:19:11 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.