Stop eclipse from line wrapping?

前端 未结 4 622
花落未央
花落未央 2020-12-13 13:46

Is there a way to get eclipse to stop erasing existing line breaks? If I have a method signature like this, I can\'t figure out how to get eclipse to leave it alone:

<
4条回答
  •  隐瞒了意图╮
    2020-12-13 14:20

    You can use comments to guide the formatter.

    void foo( //
      int arg1, //
      int arg2, //
      int arg3, //
      int arg4)
    

    will preserve the line breaks at the comments.

提交回复
热议问题