【发布时间】:2015-12-30 06:47:44
【问题描述】:
如何自动格式化java代码以在eclispe中添加大括号
if (type == null) {
if (other.type != null)
return false;
} else if (!type.equals(other.type))
return false;
【问题讨论】:
-
好吧,如果您要请求 Eclipse 支持,您至少可以指定您使用的版本和操作系统。
-
在 windows 上试试
CRTL + SHIFT + F,如果在 Mac 上试试⌘ + ⇧ + F