Problems adjusting the code formatter [message #242748] |
Thu, 20 May 2004 06:38  |
Eclipse User |
|
|
|
Hi,
I have a few issues with the code formatter that I don't know how to
resolve. So I'm hoping someone here can help. Here goes:
- How do I keep my function calls from being split on two lines? I'm
pretty sure I saw something like this somewhere, but I can't remember
where I saw it. Basically, I want my calls to look like this:
Foo foo =
bar.doSomething(arg1, arg2, arg3);
instead of
Foo foo = bar
.doSomething(arg1, arg2, arg3);
if the line is too long.
- Is it possible to have the IDE warn me with an annotation if a line is
too long in a file? Or do I have to use something like checkstyle for that?
Those are the ones I've seen so far.
Thanks,
L
|
|
|
Re: Problems adjusting the code formatter [message #242753 is a reply to message #242748] |
Thu, 20 May 2004 06:47  |
Eclipse User |
|
|
|
On Thu, 20 May 2004 06:38:09 -0400, Laurent Duperval wrote:
> Those are the ones I've seen so far.
>
Ah! Here's another one. When argument lists or parameters lists of method
definitions/calls are too long, Eclipse will sometimes do this:
foo.methodCall(arg1, new
Bar(), arg3, arg4);
I wand separation to occur after a comma, i.e. I want one parameter or
argument to be on the same line. So instead, I'd like:
foo.methodCall(arg1,
new Bar(), arg3,
arg4);
Is this possible?
Another one: can you do batch-formatting of the code? I'd like to select
all the files in a package and indent them all in one fell swoop.
Thanks,
L
|
|
|
Powered by
FUDForum. Page generated in 0.25564 seconds