Skip to content

Commit 8dad9d0

Browse files
committed
chore: v4.9.3
1 parent e34bad3 commit 8dad9d0

File tree

4 files changed

+46
-4
lines changed

4 files changed

+46
-4
lines changed

CHANGELOG.md

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
* Author : OBKoro1
33
* Date : 2021-03-27 17:30:30
44
* Last Author : OBKoro1 [email protected]
5-
* LastEditTime : 2022-12-14 23:15:59
6-
* FilePath : /CHANGELOG.md
5+
* LastEditTime : 2023-01-29 16:04:10
6+
* FilePath : /koro1FileHeader/CHANGELOG.md
77
* Description :
88
-->
99

@@ -17,6 +17,48 @@
1717

1818
[配置](https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE) - 所有配置的详细描述的文档,用于查看详细介绍。
1919

20+
### [V4.9.3]
21+
22+
* feat: specialOptions支持单独根据语言或者语言后缀进行配置,参考自定义语言的后缀形式 [#539](https://github.com/OBKoro1/koro1FileHeader/issues/539), 文档:[特殊字段允许自定义](https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE#6-%E7%89%B9%E6%AE%8A%E5%AD%97%E6%AE%B5%E5%85%81%E8%AE%B8%E8%87%AA%E5%AE%9A%E4%B9%89)
23+
24+
如下面的js、md,会针对后缀文件进行单独的特殊字段设置。
25+
26+
```js
27+
"fileheader.configObj": {
28+
"specialOptions":{
29+
"Author": "creater",
30+
"Date": "since",
31+
"LastEditTime": "lastTime",
32+
"LastEditors": "LastAuthor",
33+
"Description": "message", // 头部注释大写的描述Description
34+
"description": "function message", // 函数注释小写的描述:description
35+
"FilePath": "文件相对于项目的路径"
36+
"param": "param2", // 函数注释parm参数别名
37+
// 文件后缀、或者语言后缀,可针对单个文件后缀进行配置:language的自定义语言配置
38+
"js": {
39+
"Description": "message2", // 合并specialOptions第一层级的配置,覆盖Description的配置
40+
"return": "return2", // 单独为js文件添加return 特殊字段配置
41+
},
42+
"md": {
43+
"Date": "date",
44+
"Description": "tag"
45+
}
46+
}
47+
}
48+
```
49+
50+
51+
* feat: 函数注释特殊字段为description,头部注释的特殊字段为Description,用于区分 [#512](https://github.com/OBKoro1/koro1FileHeader/issues/512)
52+
53+
文档:[特殊字段允许自定义](https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE#6-%E7%89%B9%E6%AE%8A%E5%AD%97%E6%AE%B5%E5%85%81%E8%AE%B8%E8%87%AA%E5%AE%9A%E4%B9%89)[移动光标到Description :所在行](https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE#%E7%A7%BB%E5%8A%A8%E5%85%89%E6%A0%87%E5%88%B0description-%E6%89%80%E5%9C%A8%E8%A1%8C)
54+
55+
56+
57+
* fix: now_year改为全局匹配 [#522](https://github.com/OBKoro1/koro1FileHeader/issues/522)
58+
* fix: now_year、用户名和邮箱不再绑定 [#509](https://github.com/OBKoro1/koro1FileHeader/issues/509)
59+
* fix: param等宽错误 [#495](https://github.com/OBKoro1/koro1FileHeader/issues/495)
60+
* fix: 修复vscode默认快捷键和插件简介描述 [#498](https://github.com/OBKoro1/koro1FileHeader/issues/498)
61+
2062
### [V4.9.2]
2163

2264
* fix: VSCode 1.74.0 兼容,解决函数注释无法使用的问题

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
1. VSCode插件: 用于一键生成文件头部注释并自动更新最后编辑人和编辑时间、函数注释自动生成和参数提取。
2222
2. 插件可以帮助用户养成良好的编码习惯,规范整个团队风格。
23-
3. 从2018年5月维护至今, 关闭issue 300+ ,拥有250K+的用户,VSCode图表统计日安装用户100多-400多人,
23+
3. 从2018年5月维护至今, 关闭issue 500+ ,拥有39.7w+的用户,VSCode图表统计日均安装200-500
2424
4. 经过多版迭代后,插件支持所有主流语言,灵活方便,文档齐全,食用简单!
2525
5. 觉得插件不错的话,就给个[Star](https://github.com/OBKoro1/koro1FileHeader)⭐️吧~
2626

Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "korofileheader",
33
"displayName": "koroFileHeader",
44
"description": "用于生成文件头部注释和函数注释的插件,支持所有主流语言,功能强大,灵活方便,文档齐全,食用简单!",
5-
"version": "4.9.2",
5+
"version": "4.9.3",
66
"publisher": "OBKoro1",
77
"scripts": {
88
"build": "vsce package",

0 commit comments

Comments
 (0)