IDEA设置文档注释模板最近安装了一个新的IDEA版本IntelliJ IDEA Community Edition 2016.2(64)创建Class文件时自动生成的头部注释如图以前版本的idea创建Class时生成的头部注释如图如何配置idea的头部注释格式,可以生成像之前的注释格式一样的文档注释?解决File->settings->Editor->File and Code Templates->Files->Class原先模板#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end#parse("File Header.java")public class ${NAME} {}修改后模板#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end/** \* Created with IntelliJ IDEA. \* User: ${USER} \* Date: ${DATE} \* Time: ${TIME} \* To change this template use File | Settings | File Templates. \* Description: \*/public class ${NAME} {}
添加回答
举报
0/150
提交
取消