Java comment format settings in MyEclipse

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.