1, set the entrance, I we can in the picture below to personalize our own code style
2, file (files) annotation label
Copy Code code as follows:
/*
* @Title: ${file_name}
* @Copyright: XXX Co., Ltd. Copyright yyyy-yyyy, All rights reserved
* @Description: ${todo}< Please describe what this file is for >
* @author: Meiyi
* @data: ${date} ${time}
* @version: V1.0
*/
3. Class (Types) annotation label
Copy Code code as follows:
/**
* ${todo}< Please describe what this class is for >
* @author Meiyi
* @data: ${date} ${time}
* @version: V1.0
*/
4. Method (Methods) annotation label
Copy Code code as follows:
/**
* ${todo}< Please describe what this method is for >
* $Eclipse Annotation Template
* @throw
* @return ${return_type}
*/
5, other people can try it on their own, the back I will be a template to share out, interested in can change their own play
6. Attention Matters
6.1, configure the annotation template (as shown above) in the interface, remember the "" tab on the hook, so when the new Java class, will automatically add file comments and class comments.
6.2. When you write a method yourself in a class, you need to manually annotate the method
7, Template download Address: http://xiazai.jb51.net/201312/yuanma/codetemplates (jb51.net). rar