Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Inline implemented interface indentation

I've noticed that when I inline implement an interface in the class body itself, ie. not inside a method,

Runnable r = new Runnable() {    

    @Override
    public void run() {
        // do something
    }
};

and then press CTRL + SHIFT + F (automatically fixes indentation), eclipse indents the methods alot like:

Runnable r = new Runnable() {
                            @Override
                            public void run() {
                               // do something
                            }
};

Anyone else encountered this?

like image 577
Theodor Avatar asked Oct 19 '25 14:10

Theodor


1 Answers

Uncheck the "Align fields in columns" from the first tab of the Formatter

like image 149
Erich Cervantez Avatar answered Oct 21 '25 02:10

Erich Cervantez