How do I configure autoformatting in Eclipse?

后端 未结 1 1818

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

Before

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

After

for          


        
相关标签:
1条回答
  • 2020-12-16 14:46

    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

    0 讨论(0)
提交回复
热议问题