Jetbrains 系列 IDE 自定义注释模板

2022-11-28 13:16:57 浏览数 (1)

代码语言:javascript复制
#set( $USER="ivan ivan"  )
#set( $ORGANIZATION_NAME="Free City" )
#set( $EMAIL="mrivandu@hotmail.com"  )
#set( $VERSION="1.0.0" )
#if ($HEADER_COMMENTS)
/**
 * @Author:  ${USER}
 * @E-mail:  ${EMAIL}
 * @Time:    ${DATE} ${TIME}
 * @Project: ${PROJECT_NAME}
 * @Version: ${VERSION}
#if ($ORGANIZATION_NAME && $ORGANIZATION_NAME != "")
 * @Copyright (c) $YEAR ${ORGANIZATION_NAME}#if (!$ORGANIZATION_NAME.endsWith(".")).#end All rights reserved.
#end
**/

#end

显示如下:

代码语言:javascript复制
/**
 * @Author:  ivan du
 * @E-mail:  mrivandu@hotmail.com
 * @Time:    2022/4/13 15:49
 * @Project: netdev
 * @Version: 1.0.0
 * @Copyright (c) 2022 Free City. All rights reserved.
**/

0 人点赞