gpt4 book ai didi

eclipse 自动格式 : How to stop new line after dot of method call?

转载 作者:行者123 更新时间:2023-12-04 04:51:14 26 4
gpt4 key购买 nike

当我按 Ctrl+Shift+F

这一行:


winterwell.jtwitter.Status status = twitter.updateStatus(statuses[0]);

格式是这样的


winterwell.jtwitter.Status status = twitter  
.updateStatus(statuses[0]);

我想保持它像 .

最佳答案

这是因为您的 Maximum line width设置。您可能想要增加您的,或查看可用于包装的其他选项。

转到窗口 > 首选项... Java > 代码样式 > 格式化程序 > 编辑...
enter image description here

最大线宽
enter image description here

关于 eclipse 自动格式 : How to stop new line after dot of method call?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17412021/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com