首先下载这个应用
按图片所示
然后将这段话复制到第一个大括号后
"fileheader.customMade": {
// 头部注释默认字段
"Description": "",
"Author": "rendc",
"Date": "Do not edit", // 设置后默认设置⽂件⽣成时间
"LastEditors": "rendc", // 设置后,保存⽂件更改默认更新最后编辑⼈
"LastEditTime": "Do not edit", // 设置后,保存⽂件更改默认更新最后编辑时间
// "FilePath": "Do not edit", // 设置后,默认⽣成⽂件相对于项⽬的路径
// "custom_string_obkoro1": "可以输⼊预定的版权声明、个性签名、空⾏等"
},
// 函数注释
"fileheader.cursorMode": {
// 默认字段
"description": "",
"param": "",
"return": ""
},
"fileheader.configObj": {
"createFileTime": true,
"language": {
"languagetest": {
"head": "/$$",
"middle": " $ @",
"end": " $/"
}
},
"autoAdd": true,
"autoAddLine": 100,
"autoAlready": true,
"annotationStr": {
"head": "/*",
"middle": " * @",
"end": " */",
"use": false
},
"headInsertLine": {
"php": 2,
"sh": 2
},
"beforeAnnotation": {
"⽂件后缀": "该⽂件后缀的头部注释之前添加某些内容"
},
"afterAnnotation": {
"⽂件后缀": "该⽂件后缀的头部注释之后添加某些内容"
},
"specialOptions": {
"特殊字段": "⾃定义⽐如LastEditTime/LastEditors"
},
"switch": {
"newlineAddAnnotation": true
},
"supportAutoLanguage": [],
"prohibitAutoAdd": [
"json"
],
"prohibitItemAutoAdd": [
"项⽬的全称, 整个项⽬禁⽌⾃动添加头部注释, 可以使⽤快捷键添加"
],
"moveCursor": true,
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"atSymbol": [
"@",
"@"
],
"atSymbolObj": {
"⽂件后缀": [
"头部注释@符号",
"函数注释@符号"
]
},
"colon": [
": ",
": "
],
"colonObj": {
"⽂件后缀": [
"头部注释冒号",
"函数注释冒号"
]
},
"filePathColon": "路径分隔符替换",
"showErrorMessage": false,
"writeLog": false,
"wideSame": false,
"wideNum": 13,
"functionWideNum": 0,
"CheckFileChange": false,
// 改属性设置为true会⾃动添加头信息。如不想⾃动,则可设置为false
"createHeader": true,
"useWorker": false,
"designAddHead": false,
"headDesignName": "random",
"headDesign": false,
"cursorModeInternal": false
},
效果如下 可自定义需要显示的文字
注意:"Do not edit"不可修改
然后关闭重启,新建一个Java即可,显示效果如下