Wrapping chained method calls on a separate line in Eclipse for Java

后端 未结 7 1548
南方客
南方客 2020-12-02 05:10

I haven\'t been successful in figuring out how to wrap each method call in Eclipse. For example, I have this:

someObject.A().B().C();

7条回答
  •  不思量自难忘°
    2020-12-02 06:03

    Window > Preferences > Java > Code Style > Formater > Edit > Line wrapping > Function Calls, set the 'Line wrapping policy' as 'Wrap all elements, every element on a new line'.

提交回复
热议问题