1、点击Window--Preferences
2、双击Java
3、双击Editor
4、点击Templates
5、点击New创建代码模板,可以参考其它模板
6、确认创建后,输入模板名,按下Alt + /,出现模板选项