gpt4 book ai didi

Eclipse 格式化程序分割长字符串

转载 作者:行者123 更新时间:2023-12-02 10:26:24 25 4
gpt4 key购买 nike

有没有办法告诉 Eclipse 格式化程序,当字符串太长时,它应该用 + 分割它以自动适应最大行宽?

例如,如果我的最大线宽是 80,我会喜欢这样:

String s = "This is a very very very very very very very very very very very very very very very very very very very long String";

变成这样:

String s = "This is a very very very very very very very very very very very"
+ " very very very very very very very very long String";

最佳答案

没有。这意味着更改您的源代码,而不仅仅是空白。

关于Eclipse 格式化程序分割长字符串,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32561170/

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