I have a Java code like this:
private enum Operation {
        SAVE, LOAD, DELETE, UPDATE, REVISE 
};
I would like to customize Eclipse Indigo formatter to do something like this:
private enum Operation {
                SAVE, 
                LOAD, 
                DELETE, 
                UPDATE, 
                REVISE 
};
I could not find any option suitable for my needs, what am I missing? Or is not possible at all with this version of IDE?
Under Preferences > Java > Code Style > Formatter, edit the active formatting profile, and set the Line wrapping policy for Line Wrapping > 'enum' declaration > Constants to Wrap all elements, every element on a new line.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With