Intellij IDEA 类模板自动添加Serializable
在 Editor->File and Code Templates->Files 里找到 Java 的 Class,修改模板:
1 | #if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end |
其中的 #parse("File Header.java") 是在 Editor->File and Code Templates->Includes 中添加的自定义的类注释:
1 | /** |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 luchen's blog!