I just created a generator for some fluent interfaces. Now I have lots of code looking like this:
new MyFluentInterface()
.setFirst( "first" )
.setSecond( "second" )
.setThird( "third" )
.invoke( obj );
I like the indentation shown above, but I can't find a way to configure eclipse to indent this correctly.
eclipse always indents like this:
new MyFluentInterface()
.setFirst( "first" )
.setSecond( "second" )
.setThird( "third" )
.invoke( obj );
How can I configure eclipse so that it indents this fluent interface pattern as shown in my first code example?
Ctrl+A
,Ctrl+I
undoes this formatting? – WaspCtrl+I
thing is annoying as hell :) – Quenby