to set the entry for a comment template: Window->preference->java->code Style->code Template and then expand Comments the node is all the elements that need to be annotated.
Each of these elements is now introduced:
file (Files) Comment Tags:
/***********************************************************
* @Title : ${file_name}
* @Package : ${package_name}
* @Description: ${todo} ( Describe what the file does in a word )
* @author : Liang Shan Guang
* @date : ${date} ${time}
* @version : V1.0
***********************************************************/
type (Types) Comment Tags (comments for the Class):
/***********************************************************
* @ClassName : ${type_name}
* @Description : ${todo} ( Here is a word describing the role of this class )
* @author : Liang Shan Guang
* @date : ${date} ${time}
***********************************************************/
Field (Fields) Comment Tags:
/**?
* @Fields ${field}: ${todo} ( describe what this variable means in a word )?
*/?
Constructor Tags:
/***********************************************************
* <p>Title: </p>
* <p>Description: </p>
* ${tags}
***********************************************************/
Method (Constructor & Methods) Tags:
/*************************************************************
* @Title : ${enclosing_method}
* @Description: ${todo} ( Here is a word describing the effect of this method )
* @param : ${tags} settings File
* @return : ${return_type} return type
* @throws
*************************************************************/
override Method (overriding Methods) Tags:
/************************************************************
* ( non- Javadoc)
* <p>Title: ${enclosing_method}</p>
* <p>Description: </p>
*: ${tags}
*: ${see_to_overridden}
************************************************************/
in order to save your own configuration, you can click "Export" Export XML configuration file, you can directly change the environment after "Impor" t the configuration of their own habits
Eclipse Setup Code Template