Eclipse: Set maximum line length for auto formatting?

前端 未结 10 874
情歌与酒
情歌与酒 2020-12-04 04:22

I am working with Java. If I hit Ctrl+Shift+F in Eclipse Helios, it will auto format my code. At a certain point, it wraps lines. I would li

10条回答
  •  独厮守ぢ
    2020-12-04 05:22

    Preferences -> Java -> Code Style -> Formatter / "Edit..."

    Tabs: "Line wrapping" , "Comments"

    Field: "Maximum line width"

    Set both to make comments have the same length too. You might need to create a new profile if you don't have one already.

提交回复
热议问题