Eclipse Java 枚举缩进超过左括号。如何让它看起来更正常?

Eclipse Java Enum indents past the opening bracket. How to make it look more normal?

在 Eclipse 格式化程序配置文件编辑器中取消选中 'Indentation' 下的每个选项仍然显示示例 'UNDEFINED' 一直缩进到 Enum 'MyEnum' 的左括号之后。全新的 Eclipse 配置可能无法做到这一点,但我必须从这个项目的配置文件开始。有人可以提示我什么配置变量可能导致枚举中这种令人讨厌的缩进级别吗?

在格式化程序配置文件编辑器中,查看名为 Line Wrapping 的选项卡,然后单击 enum declaration。我打赌您会看到 Indent on column 被选为 Indentation policy。将 Indentation policy 更改为另一个值将减少缩进量。或者,您可以将 Line wrapping policy 更改为 Do not wrap