Eclipse Annotations Specification Template Summary
First, the specific operation
(1) in Eclipse, open the Window->preference->java->code style->code Template
(2) then expand the Comments node is all the elements that need to set comments, refer to the following annotation specification corresponding settings can be
II. specification of annotations
1. Document (files) Comment label
/** * FileName: ${file_name} * @Description: @author: @version V1.0 * createdate: ${date} ${time} * Copyright: Copyright (C) 2016-2017 * Company CY. * All Rights Reserved, designed by Crane-yuan * Modification History : * Date Author Version discription * ---------------------------------------------------------------------------* ${date} Crane-yuan 1.0 */
2. Type (Types) Comment Label (note for Class):
/** * @ClassName: ${type_name} * @Description: @author: Crane-yuan * @date: ${ Date} * /
3. Field Comment Label:
/** * @Fields ${field}: ${todo} * /
4. Constructor (Constructor) Comment Label:
/** * @Title: ${enclosing_type} * @Description: @param: @throws */
5. Method (Methods) Label:
/** * @Title: ${enclosing_method} * @Description: @param: ${tags} @ Return: ${return_type} @throws* /
6. Overlay method (overriding Methods) Label:
/***/
7, the Representative method (Delegate Methods) Label:
/***/
8. Getter Method Label:
/** * @Title: ${enclosing_method} <BR> * @Description: @return: */
9. Setter Method Label:
/** * @Title: ${enclosing_method} <BR> * @Description: @return: */
Java comment format settings in MyEclipse