Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Auto formatting issue
Auto formatting issue [message #44820] Fri, 23 May 2003 00:08 Go to next message
Eclipse UserFriend
Originally posted by: mzarra.extraquest.com

I have been making use of the auto format feature in the Eclipse editor
to clean up some bad code that I inherited and have noticed a rather
annoying problem. If you have either of the following two situations:

Example.passString("string" + stringVar + "another string");
or
Object.method(param1, param2, param3);

Eclipse always wants to format them like this:

Example.passString(
"string" +
stringVar +
"another string");

and

Object.method(
param1,
param2,
param3);

Even though the entire method call will fit within the 80 character
boundary that I have configured. Does anyone know of a way to fix this
or is this a bug with the formatter that should be logged?

Any thoughts?
Re: Auto formatting issue [message #45155 is a reply to message #44820] Fri, 23 May 2003 06:58 Go to previous messageGo to next message
Eclipse UserFriend
I got the same problem before.Then I tried to change the maxLineLength in
Codeformat preference. Then it worked fine..
Just try it once..

Ramana

Marcus S. Zarra wrote:

> I have been making use of the auto format feature in the Eclipse editor
> to clean up some bad code that I inherited and have noticed a rather
> annoying problem. If you have either of the following two situations:

> Example.passString("string" + stringVar + "another string");
> or
> Object.method(param1, param2, param3);

> Eclipse always wants to format them like this:

> Example.passString(
> "string" +
> stringVar +
> "another string");

> and

> Object.method(
> param1,
> param2,
> param3);

> Even though the entire method call will fit within the 80 character
> boundary that I have configured. Does anyone know of a way to fix this
> or is this a bug with the formatter that should be logged?

> Any thoughts?
Re: Auto formatting issue [message #46977 is a reply to message #45155] Fri, 23 May 2003 16:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mzarra.extraquest.com

In <bakuti$cuc$1@rogue.oti.com> Raman wrote:
> I got the same problem before.Then I tried to change the maxLineLength
> in Codeformat preference. Then it worked fine.. Just try it once..
>
> Ramana
>
> Marcus S. Zarra wrote:
Changing that value seems to work as long as it does not have to break
up the line. As soon as it does break it up, it breaks it up "too much"
as in the example above.
Re: Auto formatting issue [message #47584 is a reply to message #46977] Sun, 25 May 2003 17:44 Go to previous message
Eclipse UserFriend
Originally posted by: bob.objfac.com

There is no way to specify what you consider "too much". You should file a
feature request.

Bob

"Marcus S. Zarra" <mzarra@extraquest.com> wrote in message
news:20030523142900540-0600@news.eclipse.org...
> In <bakuti$cuc$1@rogue.oti.com> Raman wrote:
> > I got the same problem before.Then I tried to change the maxLineLength
> > in Codeformat preference. Then it worked fine.. Just try it once..
> >
> > Ramana
> >
> > Marcus S. Zarra wrote:
> Changing that value seems to work as long as it does not have to break
> up the line. As soon as it does break it up, it breaks it up "too much"
> as in the example above.
Previous Topic:Rules and Text
Next Topic:CVS Synchronize incoming mode????
Goto Forum:
  


Current Time: Mon Jul 07 09:36:43 EDT 2025

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

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

Back to the top