I have enums like:
public static enum Command
{
login,
register,
logout,
newMessage
}
When formatting the file, the output becomes:
<
Just adding latest Eclipse 2018.9
Window > Preferences > Java > Code Style > Formatter
- Edit
Line Wrapping
tree node.Wrapping settings
'enum' declaration
Constants
and Constant arguments
.Constants need to be Wrap all elements, every element on a new line
.
Constant arguments need to be Wrap where necessary
.