Use of the Android Eclipse annotation template (graphic description) _android

Source: Internet
Author: User

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

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.