Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Smart positioning of braces not honouring code formatter settings
Smart positioning of braces not honouring code formatter settings [message #181232] Wed, 06 October 2004 12:40 Go to next message
Eclipse UserFriend
Hi all,

I'd like to report a regression that i've noticed in Eclipse 3.1M2 on
windows.

My brace style in the code formatter is set to 'Whitesmiths' style which
indents curly braces to the level of the code that they surround. Like so:

if (condition)
{
// do something!
}

In Eclipse 3.0.1, when typing the braces for the 'if' the braces would
appear indented as above. But in Eclipse 3.1M2, the braces always move
back to the level of the 'if'. Like so:

if (condition)
{
// do something!
}

I've noticed that the same thing happens for for loops while loops, else
blocks, try blocks, catch blocks, and switch blocks (although the try,
catch and switch blocks weren't working in 3.0.1).

Any thoughts about if this will get fixed?

Thanks,
Sean Kirby

P.S. I know that my formatting settings are correct because everything
looks fine when I invoke the code formatter.
Re: Smart positioning of braces not honouring code formatter settings [message #181241 is a reply to message #181232] Wed, 06 October 2004 12:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Sean Kirby wrote:

> Hi all,
>
> I'd like to report a regression that i've noticed in Eclipse 3.1M2 on
> windows.

This is the wrong forum. Please use bugzilla for bug reports.

Dani

>
> My brace style in the code formatter is set to 'Whitesmiths' style
> which indents curly braces to the level of the code that they
> surround. Like so:
>
> if (condition)
> {
> // do something!
> }
>
> In Eclipse 3.0.1, when typing the braces for the 'if' the braces would
> appear indented as above. But in Eclipse 3.1M2, the braces always
> move back to the level of the 'if'. Like so:
>
> if (condition)
> {
> // do something!
> }
>
> I've noticed that the same thing happens for for loops while loops,
> else blocks, try blocks, catch blocks, and switch blocks (although the
> try, catch and switch blocks weren't working in 3.0.1).
>
> Any thoughts about if this will get fixed?
>
> Thanks,
> Sean Kirby
>
> P.S. I know that my formatting settings are correct because everything
> looks fine when I invoke the code formatter.
Re: Smart positioning of braces not honouring code formatter settings [message #181290 is a reply to message #181241] Wed, 06 October 2004 18:18 Go to previous message
Eclipse UserFriend
I've added the description to bug #44961 in bugzilla

sk

Daniel Megert wrote:
> Sean Kirby wrote:
>
>> Hi all,
>>
>> I'd like to report a regression that i've noticed in Eclipse 3.1M2 on
>> windows.
>
>
> This is the wrong forum. Please use bugzilla for bug reports.
>
> Dani
>
>>
>> My brace style in the code formatter is set to 'Whitesmiths' style
>> which indents curly braces to the level of the code that they
>> surround. Like so:
>>
>> if (condition)
>> {
>> // do something!
>> }
>>
>> In Eclipse 3.0.1, when typing the braces for the 'if' the braces would
>> appear indented as above. But in Eclipse 3.1M2, the braces always
>> move back to the level of the 'if'. Like so:
>>
>> if (condition)
>> {
>> // do something!
>> }
>>
>> I've noticed that the same thing happens for for loops while loops,
>> else blocks, try blocks, catch blocks, and switch blocks (although the
>> try, catch and switch blocks weren't working in 3.0.1).
>>
>> Any thoughts about if this will get fixed?
>>
>> Thanks,
>> Sean Kirby
>>
>> P.S. I know that my formatting settings are correct because everything
>> looks fine when I invoke the code formatter.
Previous Topic:Package Namespace in IDE
Next Topic:Extending content-assist
Goto Forum:
  


Current Time: Mon Jul 14 15:18:37 EDT 2025

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

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

Back to the top