Help with Java code formatter [message #761470] |
Tue, 06 December 2011 09:13  |
Eclipse User |
|
|
|
Hello,
I try to use the Java code formatter but I can't get what I want with
line wrapping.
I've set the policy to "Wrap where necessary" and maximum line width to
80, but either it wraps where it shouldn't, or it doesn't wrap where it
should...
Here is an example of result:
//
-------------------------------------------------------------------------80->
public class FormatterTest {
void test() {
int a, x = 1, y = 2, z = 3, somelongvariablename1 = 1,
somelongvariablename2 =
2;
a =
x
* y
* z
* (somelongvariablename1 + somelongvariablename1
+ somelongvariablename1 +
somelongvariablename2 + somelongvariablename2);
}
}
//
-------------------------------------------------------------------------80->
Thanks for your help.
--
Patrick
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.16093 seconds