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

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

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

猜你喜欢

转载自www.cnblogs.com/showjs/p/11411653.html