导入注释模板: 注释模版 : 操作步骤:打开Window->Preferences->Java->Code Style->Code Templates 点击“Import”,导入模板codetemplates.xml文件 在程序中使用注释模板 在你需要添加注释的地方点击Sources->Ganarate Element Comment,或者使用快捷键 Alt+Shift+J ,则 eclipse 自动在该类前面添加注释。 相关文章: