* Eclipse formatter and javadoc.
@ 2007-05-16 10:49 Nurdin Premji
2007-05-16 16:03 ` Sami Wagiaalla
0 siblings, 1 reply; 3+ messages in thread
From: Nurdin Premji @ 2007-05-16 10:49 UTC (permalink / raw)
To: Frysk Hackers
The eclipse formatter currently mangles javadoc by indenting the first
line 2 spaces, and then indenting the following lines 8 spaces.
I'm not sure how to correct this, however this behaviour can be avoided
by turning off formatting of javadoc.
To do this go to project->properties->java code style->formatter and
edit the formatter. Select the "comments" tab, the far right tab. (Here
you can see a preview of what I'm talking about with the javadoc).
Uncheck enable comment formatting.
If people are happy with this change then it can be committed.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Eclipse formatter and javadoc.
2007-05-16 10:49 Eclipse formatter and javadoc Nurdin Premji
@ 2007-05-16 16:03 ` Sami Wagiaalla
2007-05-16 17:00 ` Stan Cox
0 siblings, 1 reply; 3+ messages in thread
From: Sami Wagiaalla @ 2007-05-16 16:03 UTC (permalink / raw)
To: Nurdin Premji; +Cc: Frysk Hackers
There are several ways to fix this:
One is to change Tab policy under indentation from mixed to spaces only
(which I recommend. Isn't that what emacs does ?).
The other is to change to "Tab size" from 8 to 2 (not so elegant).
Overall i dont think formatting of java docs should be turned off.
Nurdin Premji wrote:
> The eclipse formatter currently mangles javadoc by indenting the first
> line 2 spaces, and then indenting the following lines 8 spaces.
>
> I'm not sure how to correct this, however this behaviour can be
> avoided by turning off formatting of javadoc.
> To do this go to project->properties->java code style->formatter and
> edit the formatter. Select the "comments" tab, the far right tab.
> (Here you can see a preview of what I'm talking about with the
> javadoc). Uncheck enable comment formatting.
>
> If people are happy with this change then it can be committed.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Eclipse formatter and javadoc.
2007-05-16 16:03 ` Sami Wagiaalla
@ 2007-05-16 17:00 ` Stan Cox
0 siblings, 0 replies; 3+ messages in thread
From: Stan Cox @ 2007-05-16 17:00 UTC (permalink / raw)
To: Frysk List
On Wed, 2007-05-16 at 11:17 -0400, Sami Wagiaalla wrote:
> Isn't that what emacs does?
Emacs indent-region, indent-to-column etc use a mixture of tabs and
spaces, using tabs where possible. It has an option to use only spaces,
but most folks using emacs to edit C/C++ don't use that.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-05-16 16:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-16 10:49 Eclipse formatter and javadoc Nurdin Premji
2007-05-16 16:03 ` Sami Wagiaalla
2007-05-16 17:00 ` Stan Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).