Search code examples
javaeclipseautoformatting

java eclipse auto-formatting braces indentation


My problem with eclipse's auto format is that it's taking this:

public List<JSON> getIdentityQualifiers(String identity)
        throws DatabaseException
{
     //....code
}

to this:

public List<JSON> getIdentityQualifiers(String identity)
        throws DatabaseException
        {
    //....code
        }

Obviously, I want to keep the previous formatting, but I can't find where to control this.


Solution

  • I think basically it may have been my version of Eclipse or something obscure as this stopped happening a long time ago.