作者:wangnan00 | 来源:互联网 | 2023-09-04 09:34
Ijustcreatedageneratorforsomefluentinterfaces.NowIhavelotsofcodelookinglikethis:我刚
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以正确缩进。
eclipse always indents like this:
eclipse总是像这样缩进:
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?
我如何配置eclipse,以便缩进这个流畅的界面模式,如我的第一个代码示例所示?
1 个解决方案