# eclipse中设置Java编辑器的line width

**URL:** <https://www.isharkfly.com/t/eclipse-java-line-width/10663>\
**Category:** 软件技术\
**Created:** [March 8, 2013, 4:23am UTC](https://www.isharkfly.com/t/eclipse-java-line-width/10663 "2013-03-08T04:23:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![honeymoose](https://www.isharkfly.com/user_avatar/www.isharkfly.com/honeymoose/32/20796_2.png) [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Post date:** [March 8, 2013, 4:23am UTC](https://www.isharkfly.com/t/eclipse-java-line-width/10663/1 "2013-03-08T04:23:43Z")

</div>

eclipse中设置Java编辑器的行宽。

 ![](https://com-ossez-www-discourse.s3.dualstack.us-east-2.amazonaws.com/discourse-uploads/original/2X/c/c4335d9faf1cf7388385bd3c9137b30c2caf2d2c.jpeg)

注：可以new一个自己的Active profile

Comment width and line wrapping is set in Preferences-\>Java-\>Code Style-\>Formatter, then click on the Edit button and select the Comments tab. I like Line Width for Comments to be 120.

Code line wrapping is set nearby, in Preferences-\>Java-\>Code Style- \>Formatter, then click on the Edit button and select the Line Wrapping tab. I like a line width of 120 and indent size of 4.
