依次点击【File】->【Settings…】->【Editor】->【File and Code Templates】->【Class】添加如下内容:
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end#parse("File Header.java")public class ${NAME} {}
再点击【Apply】->【OK】,如下图所示: