IDEA (add class and comments annotated Method)

Add Class Notes:

File---Setting----Editor----Code Style-----File and Code Templates--------Class

#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end
#parse("File Header.java")
/**
*@program: ${PROJECT_NAME}
*@description: ${description}
*@author: liu yan
*@create: ${YEAR}-${MONTH}-${DAY} ${HOUR}:${MINUTE}
*/
public class ${NAME} {
}
1899015-587c91fd94def0ab.png
image.png

or


1899015-b0f16307b6ad202f.png
image.png

After successfully added, describing the success of the class is created when the pop-up text box.

Ali coding standards proposed date in the format YYYY / MM / DD

Add Method Note:

Editor -> Live Templates -> right click the plus sign to add a Templates Group for yourself -> then select your Group once again Click the plus sign to add Live Templates

/**
*@Description: $discription$
*@Param: $params$
*@return: $return$
*@Author: your name
*@date: $date$
*/
1899015-404d4d353669c171.png
image.png

edit variables:


1899015-17c5f93efa129ab2.png
image.png

Guess you like

Origin blog.csdn.net/weixin_34189116/article/details/90930983