依次点击Window->Preferences->Java->Code Style->Formatter->Edit

Eclipse中代码大括号上下对齐

取个新名称(mystyle),展开Brace position选项卡,全部设置为next line.点击应用并退出。

相关文章: