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

后端 未结 7 1584
南方客
南方客 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 05:52

    in: Window->Preferences->Java->Code Style->Formater->Edit->Line wrapping->Function call-> Qualified invocation

    select Indentation policy as indent on column

提交回复
热议问题