Smart positioning of braces not honouring code formatter settings [message #181232] |
Wed, 06 October 2004 12:40  |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.47585 seconds