Eclipse设置保存时自动格式化代码

  在使用eclipse时,经常需要使用到Ctrl+Shift+F来格式化代码,可以打开保存时格式化,会更方便。

  打开方式:Window-->Preferences-->Java --> Editor-->Save Actions, 勾选窗口上的“Perform the selected actions on save”选项,其他选项根据需要自行选择。

 

posted on 2019-08-26 11:45  ()=>{}  阅读(264)  评论(0编辑  收藏  举报

导航