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 like to increase the maximum line length. How can I do this?

推荐答案

In preferences Java -> Code Style -> Formatter, edit the profile. Under the Line Wrapping tab is the primary option for line width (Maximum line width:). In the Comments tab you have a separate option Maximum line width for comments:, which will also need to be changed to affect comment wrapping.

如果使用[Built-in]个配置文件中的一个,则需要创建自己的配置文件才能在中进行这些更改.只需点击"新建…"在格式化程序首选项页面上.

Java相关问答推荐

如何在Java中对自定义协议进行主机名验证?

是否可以从@ TrustMapping中删除特定方法的基路径?

在FML中删除关键帧动画

为什么Java中的两个日期有差异?

了解Android Studio中的调试器输出

Exe4j创建的应用程序无法再固定在任务栏Windows 11上

使用REST客户端和对象映射器从字符串反序列化Json

用户填充的数组列表永不结束循环

从ActiveMQ Classic迁移到ActiveMQ Artemis需要进行哪些客户端更改?

如何在构建Gradle项目时排除com.google.guava依赖项的一个变体

如何在JavaFX中制作鼠标透明stage

Java页面筛选器问题

如何配置空手道以使用FeignClient或RestTemplate代替ApacheHttpClient

如何在@CsvSource中传递空格作为值

Android Studio模拟器没有互联网

如何设置默认序列生成器分配大小

如何以事务方式向ibmmq发送消息

Springboot应用程序无法识别任何@RestController或@Service,我认为@Repository也无法识别

如何在Java上为循环数组从synchronized迁移到ReentrantLock

如何在java中从以百分比表示的经过时间和结束日期中找到开始日期