导入注释模板:

注释模版 : 操作步骤:打开Window->Preferences->Java->Code Style->Code Templates

Eclips注释模板的使用

点击“Import”,导入模板codetemplates.xml文件
Eclips注释模板的使用

在程序中使用注释模板

在你需要添加注释的地方点击Sources->Ganarate Element Comment,或者使用快捷键 Alt+Shift+J ,则 eclipse 自动在该类前面添加注释。
Eclips注释模板的使用

相关文章: