Eclipse Setup Code Template

Source: Internet
Author: User

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

Related Article

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.