设置路径:windows→preferences→java→editer→save Actions
1、设置如下

2、可单击右侧configure配置
2.1、code organorganizing设置

2.2、code style设置

2.3、member accesses设置

2.4、missing code设置

2.5、ununnecessary code 设置

原文:https://www.cnblogs.com/bjlhx/p/8910010.html