2、Settings->File and Code Templates
Files标签下
Class修改为:
/* Copyright © 2020 Yuech and/or its affiliates. All rights reserved. */
#if (${
PACKAGE_NAME} && ${
PACKAGE_NAME} != "")package ${
PACKAGE_NAME};#end
#parse("File Header.java")
public class ${
NAME} {
}
Interface修改为:
/* Copyright © 2020 Yuech and/or its affiliates. All rights reserved. */
#if (${
PACKAGE_NAME} && ${
PACKAGE_NAME} != "")package ${
PACKAGE_NAME};#end
#parse("File Header.java")
public interface ${
NAME} {
}
Enum修改为:
/* Copyright © 2020 Yuech and/or its affiliates. All rights reserved. */
#if (${
PACKAGE_NAME} && ${
PACKAGE_NAME} != "")package ${
PACKAGE_NAME};#end
#parse("File Header.java")
public @interface ${
NAME} {
}
AnnotationType修改为:
/* Copyright © 2020 Yuech and/or its affiliates. All rights reserved. */
#if (${
PACKAGE_NAME} && ${
PACKAGE_NAME} != "")package ${
PACKAGE_NAME};#end
#parse("File Header.java")
public @interface ${
NAME} {
}