Auto formatting issue [message #44820] |
Fri, 23 May 2003 04:08 |
Eclipse User |
|
|
|
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 #46977 is a reply to message #45155] |
Fri, 23 May 2003 20:29 |
Eclipse User |
|
|
|
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 21:44 |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.03385 seconds