MyEclipse setting a template for annotations

Source: Internet
Author: User

myeclipse Setting up comment templates
Using MyEclipse to develop projects, you often use annotations to annotate some of the information of a method, in order to ensure the specification of annotations and to improve efficiency, myeclipse can define the template of the code itself

Under the MyEclipse window, select Window->preferences->java->code style->code Templates, and then select Comments on the right,


I take one of the methods examples:

Double-click Methods, or methods, on the right, click Edit,


Enter the parameters you want, then place the cursor behind the parameter and click Insert Variable

The following box appears,


The values in the box we know what it is when we look at it.

For example, we can set the following template
/**
* @Description: ${todo}
* @param ${tags}
* @return ${return_type}
* @author User
* @date ${date}${time}
*/
And then Apply,ok on the line.
Use the time to play/**, and then enter on the line.

MyEclipse setting a template for annotations

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.