具体方法:windows-->Preferences-->Java --> Editor-->Save Actions, 看到右边的选项了吧,勾选“Perform the selected actions on save”,其他选项根据需要自己选择或者配置就可以了。 

eclipse保存文件自动格式化

具体方法:windows-->Preferences-->Java --> Editor-->Save Actions, 看到右边的选项了吧,勾选“Perform the selected actions on save”,其他选项根据需要自己选择或者配置就可以了。 

eclipse保存文件自动格式化

相关文章: