1. Add Class Notes: file-settings-file and code Templates-Class
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end #parse("File Header.java") /** *@program: ${PROJECT_NAME} *@description: ${description} *@author: weixinyuan *@create: ${YEAR}-${MONTH}-${DAY} ${HOUR}:${MINUTE} */ public class ${NAME} { }
2. Methods Notes: file-settings-Live Templates, click the plus sign, the New Template Group
Notes content:
/** *@Description: $discription$ *@Param: $params$ *@return: $return$ *@Author: weixinyuan *@date: $date$ */
Note: The shortcut keys on the outside knocking method, you can also generate comments, but the parameters and return values you would not be able to generate, because the value of the parameter and return only in the function scope, intellij to find, so the best shortcuts knock in internal methods.