开发者

Help with Eclipse line wrapping

开发者 https://www.devze.com 2023-02-22 18:11 出处:网络
I\'m trying to get something like: someObject.firstFunctionCall().secondFunctionCall().thirdFuncti开发者_如何学GoonCall();

I'm trying to get something like:

someObject.firstFunctionCall().secondFunctionCall().thirdFuncti开发者_如何学GoonCall();

to look like:

someObject.firstFunctionCall()  
          .secondFunctionCall()  
          .thirdFunctionCall()

I played around with the formatting editor and tried searching to no avail. I just can't think of the name for multiple function calls in one statement. I can do it myself but then it reverts to the top example every time I run the formatter.


You'll have to format it yourself.

To configure the formatter to not rewrap already wrapped lines, you can select this option in the "Line Wrapping" section of the formatter:

  • Never join already wrapped lines

Though it will change the indentation of the two lines.

0

精彩评论

暂无评论...
验证码 换一张
取 消