I dislike how auto format messes up empty cycle body, like:
for (int i = 0; isTest(i); i++);
for (int i = 0; isTest(i); i++)
;
How to configure eclipse not to do this?
To format your whole script: Open the required file. Go to Source | Format Document or press Ctrl+Shift+F.
Importing preferences for automatic formatting. Eclipse has the capability to do so some automatic formatting whenever a file that is being edited is saved.
Go to Windows -> Preferences, and in the options table select Java -> Code Style -> Formatter, then configure to your hearts content.
For future reference, in the Preferences menu you can just type in a search term to find all options for that term - so just going onto the Preferences menu and typing "format" will show you all options
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