Java code reformatting question [message #53459] |
Wed, 30 April 2003 15:43 |
Eclipse User |
|
|
|
Originally posted by: no.email.please.com
[Is eclipse.technology the right newsgroup for this kind of question?
How come there is no "eclipse.jdt" newsgroup?]
When I format (Ctrl-Shift-f) my code, the following:
new Foo("abc", "def", "ghi")
is turned into
new Foo(
"abc",
"def",
"ghi"
);
.... which I don't like very much. I'd rather have something a little bit
more space efficient.
I looked at the Code formatter options but I didn't see where this is
defined. Can Eclipse do that or do I need to install a plug-in? (does
Jalopy support this kind of customization?)
--
Cedric
http://beust.com/weblog
|
|
|
|
Re: Java code reformatting question [message #53513 is a reply to message #53459] |
Wed, 30 April 2003 16:08 |
Eclipse User |
|
|
|
Originally posted by: faust.acm.org
This newsgroup is deprecated.
> [Is eclipse.technology the right newsgroup for this kind of question?
> How come there is no "eclipse.jdt" newsgroup?]
See eclipse.tools.jdt
> When I format (Ctrl-Shift-f) my code, the following:
>
> new Foo("abc", "def", "ghi")
>
> is turned into
>
> new Foo(
> "abc",
> "def",
> "ghi"
> );
>
> ... which I don't like very much. I'd rather have something a little bit
> more space efficient.
>
> I looked at the Code formatter options but I didn't see where this is
> defined. Can Eclipse do that or do I need to install a plug-in? (does
> Jalopy support this kind of customization?)
Not yet. I think Jalopy does support this.
Randy
|
|
|
Re: Java code reformatting question [message #53539 is a reply to message #53459] |
Wed, 30 April 2003 16:31 |
Eclipse User |
|
|
|
Originally posted by: Olivier_Thomann.ca.ibm.comNOSPAM
On Wed, 30 Apr 2003 15:43:43 +0000 (UTC), Cedric Beust
<no.email@please.com> wrote:
>I looked at the Code formatter options but I didn't see where this is
>defined. Can Eclipse do that or do I need to install a plug-in? (does
>Jalopy support this kind of customization?)
Hi Cedric,
eclipse.jdt is more appropriate for java code formatter question. This
kind of settings is in the works for the new formatter. We plan to
completely change the actual formatter. There are simply too many
problems and the one you have is just one of them :-(.
The solution for now is to use another formatter like Jalopy.
--
Olivier
|
|
|
Re: Java code reformatting question [message #53564 is a reply to message #53459] |
Thu, 01 May 2003 13:55 |
Eclipse User |
|
|
|
Originally posted by: pw.ap2.be
Cedric Beust wrote:
> [Is eclipse.technology the right newsgroup for this kind of question?
> How come there is no "eclipse.jdt" newsgroup?]
> When I format (Ctrl-Shift-f) my code, the following:
> new Foo("abc", "def", "ghi")
> is turned into
> new Foo(
> "abc",
> "def",
> "ghi"
> );
Hi,
That only happens when the line is longer than the max line length.
You can increase this value in Window-> Preferences,
Java->Code formatter: tab Line splitting.
> .... which I don't like very much. I'd rather have something a little bit
> more space efficient.
> I looked at the Code formatter options but I didn't see where this is
> defined. Can Eclipse do that or do I need to install a plug-in? (does
> Jalopy support this kind of customization?)
> --
> Cedric
> http://beust.com/weblog
|
|
|
|
|
|
Re: Java code reformatting question [message #593441 is a reply to message #53459] |
Thu, 01 May 2003 13:55 |
Eclipse User |
|
|
|
Originally posted by: pw.ap2.be
Cedric Beust wrote:
> [Is eclipse.technology the right newsgroup for this kind of question?
> How come there is no "eclipse.jdt" newsgroup?]
> When I format (Ctrl-Shift-f) my code, the following:
> new Foo("abc", "def", "ghi")
> is turned into
> new Foo(
> "abc",
> "def",
> "ghi"
> );
Hi,
That only happens when the line is longer than the max line length.
You can increase this value in Window-> Preferences,
Java->Code formatter: tab Line splitting.
> .... which I don't like very much. I'd rather have something a little bit
> more space efficient.
> I looked at the Code formatter options but I didn't see where this is
> defined. Can Eclipse do that or do I need to install a plug-in? (does
> Jalopy support this kind of customization?)
> --
> Cedric
> http://beust.com/weblog
|
|
|
Powered by
FUDForum. Page generated in 0.03500 seconds