IDEA configure your comments

File -> Setting -> Live Templates, click +, select 2.Template Group ...

 

 Creating Group, my name MyAnnotation, and then click again to select MyAnntation +, select 1.Live Template

 

 Create a custom name, enter the string late in the file will automatically prompt

 

 Template Text reads as follows:

/** 
 * @Description: $description$ 
 * @Param: $params$
 * @return: $returns$ 
 * @Author: qjc
 * @Date: $date$ 
 */

Click Change to select available the comment in what folder, I chose EveryWhere

 

 Click Apply, click OK, ready for use

Use example:

Just open a file, enter qjc

 

 Will automatically prompt (if not automatically prompt, you can configure their own about) your own comments, press Enter

 

 Set your own notes finished!

 

Guess you like

Origin www.cnblogs.com/java-spring/p/11454392.html