Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Problems adjusting the code formatter
Problems adjusting the code formatter [message #242748] Thu, 20 May 2004 10:38 Go to next message
Laurent Duperval is currently offline Laurent DupervalFriend
Messages: 37
Registered: July 2009
Member
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 10:47 Go to previous message
Laurent Duperval is currently offline Laurent DupervalFriend
Messages: 37
Registered: July 2009
Member
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
Previous Topic:Eclipse Concepts
Next Topic:How to lay out two files side by side in editors?
Goto Forum:
  


Current Time: Thu Jan 02 21:45:07 GMT 2025

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

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

Back to the top