Reformatting of 'if' and 'for' clauses causes the opening brace to moved to the next line regardless of settings. For example:
if (long condition) {
// blah
}
Will be reformatted to:
if (long condition)
{
// blah
}
This doesn't happen in IDEA 4.5 but has consitently happened on all IDEA 5 builds. Note that brace placement is set to "End of line" for Class, method and other.
I have also attached a seperate standalone project which shows the problem. Reformatting the codebase should result in the code remaining unchanged, but the opening brace '{' will be moved to the next line. There is no way to stop this behaviour. Per project code style is off. Global code style is set to 'Default'.
Also attached are all my preferences, but they shouldn't affect this anyway given that I'm using defaults all around.