15

I dislike how auto format messes up empty cycle body, like:

Before

for (int i = 0; isTest(i); i++); 

After

for (int i = 0; isTest(i); i++)
    ;

How to configure eclipse not to do this?

M. A. Kishawy
  • 5,001
  • 11
  • 47
  • 72
Margus
  • 19,694
  • 14
  • 55
  • 103

1 Answers1

26

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

M. A. Kishawy
  • 5,001
  • 11
  • 47
  • 72
tddmonkey
  • 20,798
  • 10
  • 58
  • 67