How to configure the Eclipse Java code style formatter to start the code following a brace on the same line as the brace?
class Example
{ Example()
{
}
void bar(int p)
{ for (int i = 0; i < 10; i++)
{ //a comment
}
}
}
EDIT: Please read the question carefully. I am not asking a general question on how to use the formatter. It is easy to get the formatter to do this:
class Example
{
//Code starts on the line following the brace
Example()
{
}
}
It is NOT easy to get it to do this:
class Example
{ Example() //Code starts on the same line as the brace
{
}
}