Formatting assignments [message #290312] |
Tue, 23 August 2005 13:51 |
Eclipse User |
|
|
|
Originally posted by: Miriam.Drebing.ppi.de
Hi,
we are using the Java Code Formatter in Eclipse 3.0.1 and found several
problems with formatting our sources. Most of them seem to be solved in
Eclipse 3.1, but we still can't figure out how to break assignments when
they get too long.
What I want is something like this:
private int tooLongVariable =
object.getDataFromVeryLongMethodName();
With a linebreak before or after "=".
After formatting all this is on one line:
private int tooLongVariable =
object.getDataFromVeryLongMethodName();
All I found out until now is that this should have worked with older
versions of Eclipse. And some comment that it will work again. Is there a
way to force the linebreak?
Jalopy won't work for us.
Thanks in advance.
Miriam
|
|
|
Re: Formatting assignments [message #290318 is a reply to message #290312] |
Tue, 23 August 2005 15:01 |
Eclipse User |
|
|
|
Originally posted by: daniel.megert.gmx.net
Miriam wrote:
>Hi,
>
>we are using the Java Code Formatter in Eclipse 3.0.1 and found several
>problems with formatting our sources. Most of them seem to be solved in
>Eclipse 3.1, but we still can't figure out how to break assignments when
>they get too long.
>
>What I want is something like this:
>
> private int tooLongVariable =
> object.getDataFromVeryLongMethodName();
>
>With a linebreak before or after "=".
>
>After formatting all this is on one line:
>
> private int tooLongVariable =
>object.getDataFromVeryLongMethodName();
>
>All I found out until now is that this should have worked with older
>versions of Eclipse. And some comment that it will work again. Is there a
>way to force the linebreak?
>
>
AFAIK this is not possible with 3.1. Please log a feature request
against JDT Core.
Dani
>Jalopy won't work for us.
>
>Thanks in advance.
>
>Miriam
>
>
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03131 seconds