1. Create a New Java File Header comment <br/> Windows --> preference <br/> JAVA --> code style --> code templates <br/> code --> New java files <br/> edit it <br/>$ {filecomment} <br/>$ {package_declaration} <br/>/** <br/> * @ author <br/> * @ version Creation Time: $ {date }$ {time} <br/> * class description <br/> */<br/>$ {typecomment} <br/>$ {type_declaration} <br/> 2. Provide a method annotation template <br/> set a method annotation template: select "Preferences" under "window" in the eclipse menu bar, and expand the tree on the left to Java-> <SPAN class = 'wp _ keywordlink '> Code </span>. Type-> code template, expand the comments in the dialog box on the Right> method, and click the edit button on the right. Edit the content. You can also click the Insert variable button below to add a variable. For example: <br/>/** <br/> * @ author $ {user} <br/> * function: <br/> * $ {tags} <br/> */