Skip to main content



      Home
Home » Eclipse Projects » Technology Project and PMC » Java code reformatting question
Java code reformatting question [message #53459] Wed, 30 April 2003 11:43 Go to next message
Eclipse UserFriend
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 #53486 is a reply to message #53459] Wed, 30 April 2003 11:47 Go to previous messageGo to next message
Eclipse UserFriend
Cedric, I would repost to eclipse.tools.jdt

Darins

"Cedric Beust" <no.email@please.com> wrote in message
news:Xns936D58EA977A0noemailpleasecom@204.138.98.10...
> [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 12:08 Go to previous messageGo to next message
Eclipse UserFriend
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 12:31 Go to previous messageGo to next message
Eclipse UserFriend
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 09:55 Go to previous message
Eclipse UserFriend
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 #593391 is a reply to message #53459] Wed, 30 April 2003 11:47 Go to previous message
Eclipse UserFriend
Cedric, I would repost to eclipse.tools.jdt

Darins

"Cedric Beust" <no.email@please.com> wrote in message
news:Xns936D58EA977A0noemailpleasecom@204.138.98.10...
> [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 #593411 is a reply to message #53459] Wed, 30 April 2003 12:08 Go to previous message
Eclipse UserFriend
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 #593428 is a reply to message #53459] Wed, 30 April 2003 12:31 Go to previous message
Eclipse UserFriend
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 #593441 is a reply to message #53459] Thu, 01 May 2003 09:55 Go to previous message
Eclipse UserFriend
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
Previous Topic:Java code reformatting question
Next Topic:minimal workbench?
Goto Forum:
  


Current Time: Wed Apr 16 13:21:14 EDT 2025

Powered by FUDForum. Page generated in 0.03512 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top