【发布时间】:2011-12-24 02:27:12
【问题描述】:
我需要与 this question 中完全相同的效果,但在 Eclipse 中。
只有当我在“:”之前明确插入新行或第二个操作数(“true”表达式)太长时,它才应该进行对齐。
例子:
a = cond ? "a veeeeeeeeeeeeeeeery loooooooooooooooooooooooooooong string"
: "";
// ^ put the colon here
【问题讨论】:
-
您浏览过所有格式选项吗? Eclipse > 设置并搜索格式化程序。
-
我浏览了所有我认为相关的部分,但没有这样的选项。
标签: java eclipse code-formatting