一、自动格式化与导包
1.eclipse菜单栏Window-Preferences打开设置。
2.选择Java-Editor-Save Actions,打开自动格式化与自动导包。
3.点击Apply and Close即可。
二、自动输入指定语句
用于自动添加作者信息、自动导入常用包等。
1.eclipse菜单栏Window-Preferences打开设置。
2.选择Java-Code Style-Code Templates-Code,双击New Java files进入编辑,完成后点击OK。
3.点击Apply and Close即可。