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