https://www.jetbrains.com/help/idea/file-template-variables.html
/**encoding: utf-8 * 版权所有 ${YEAR} 涂聚文有限公司 * 许可信息查看: * 描述: # Author : geovindu,Geovin Du 涂聚文. # IDE : IntelliJ IDEA 2023.1 Java 17 # Datetime : ${YEAR} - ${DATE} - ${TIME} # User : ${USER} # Product : ${PRODUCT_NAME} # Project : ${PROJECT_NAME} # File : ${NAME}.java # explain : 学习 **/
/**encoding: utf-8 # Author : geovindu,Geovin Du 涂聚文. # IDE : IntelliJ IDEA 2023.1 Java 17 # Datetime : ${DATE} ${TIME} # User : ${USER} # Product : ${PRODUCT_NAME} # Project : ${PROJECT_NAME} # File : ${NAME}.java # explain : 学习 类 **/ #if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end #parse("File Header.java") public class ${NAME} { }
/**encoding: utf-8 # Author : geovindu,Geovin Du 涂聚文. # IDE : IntelliJ IDEA 2023.1 Java 17 # Datetime : ${DATE} ${TIME} # User : ${USER} # Product : ${PRODUCT_NAME} # Project : ${PROJECT_NAME} # File : ${NAME}.java # explain : 学习 接口 **/ #if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end #parse("File Header.java") public interface ${NAME} { }
标签:Templates,code,java,NAME,PACKAGE,IDEA,File,IntelliJ From: https://www.cnblogs.com/geovindu/p/17524731.html