为类添加自动注释步骤:

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

第一步:

IntelliJ IDEA为类自动添加注释

/**
 * @author     :zyr
 * @date       :Created in ${DATE} ${TIME}
 * @description:${description}
 * @modified By:
 * @version:     $version$
 */

第二步:

IntelliJ IDEA为类自动添加注释

/**
 * @author     :zyr
 * @date       :Created in ${DATE} ${TIME}
 * @description:${description}
 */

最后点击apply,ok:

IntelliJ IDEA为类自动添加注释

相关文章: