IDEA | Class and method name annotation

One, set the class comment template

File -> Settings -> Editor -> File and Code Templates -> Includes

/**
 * @ClassName ${NAME}
 * @Description TODO
 * @author 花学长
 * @createTime ${YEAR}.${MONTH}.${DAY} ${HOUR}:${MINUTE}
 * @version 1.0.0
 */

*Note:
${PACKAGE_NAME}: package path
${NAME}: file name
${USER}: host user name
${DATE}: system current date, format: yyyy/mm/dd
${TIME}: system current time The format is: HH:mm
${YEAR}: current year
${MONTH}: current month
${MONTH_NAME_SHORT}: abbreviated month name; such as: Jan, Feb, etc.
${MONTH_NAME_FULL}: full spelling of the month name; such as January , February.
${DAY}: current day
${DAY_NAME_SHORT}: abbreviated weekday; such as: Mon, Tue, etc.
${DAY_NAME_FULL}: full weekday; such as: Mon, Tue, etc.
${HOUR}: current hour
${MINUTE}: current minute
${PROJECT_NAME}: project name

 

Two, define the method annotation template

File -> Settings -> Editor -> Live Templates

Shortcut key/**+enter
 

IDEA Generation Tools—Generata JavaDoc

Guess you like

Origin blog.csdn.net/qq_41920732/article/details/105577973