koro1FileHeader icon indicating copy to clipboard operation
koro1FileHeader copied to clipboard

windows11,vscode1.89.0版本,函数注释快捷键不起作用

Open wekerSnail opened this issue 1 year ago • 7 comments

描述bug(必填)

windows11,vscode1.89.0版本,函数注释快捷键(ctrl+windows+t)不起作用,并且查看快捷键设置中也没有对应可以配置的地方

注释设置(必填):

VsCode设置:

   "fileheader.configObj": {
        "autoAdd": true,
        "createHeader": false,
    },
    "fileheader.customMade": {
        "Author": "name",
        "Description": "",
        "Date": "Do not edit",
        "LastEditTime": "Do not edit",
        "FilePath": ""
    },
    //自动生成注释插件  函数注释
    "fileheader.cursorMode": {
        "description": "",
        "Author": "name",
        "param": "",
        "return": ""
    },

文件后缀(必填):

如:test.js 的后缀为 js

你得到的注释(必填):

你生成的注释为:

// 注释贴在这里面

也可以贴上截图:

预期的行为(必填):

预期得到的注释/行为:

// 预期行为的注释贴在这里

也可以贴上截图:

屏幕截图(选填)

image

问题相关(选填)

在这里添加关于这个问题的任何其他上下文。

错误日志(选填):

怎么生成错误日志?

wekerSnail avatar May 29 '24 04:05 wekerSnail

我也是不生效,头部倒是可以

JI4JUN avatar May 30 '24 09:05 JI4JUN

vsc 1.90.1 检查发现默认快捷键中有这玩意:

{ "key": "ctrl+win+t",            "command": "extension.cursorTip", "when": "editorTextFocus" },。

尝试使用keybindings.json覆盖掉这个失败:

[ { "key": "ctrl+win+t",            "command": "extension.fileheader", "when": "editorTextFocus" }, ]

zealX avatar Jun 14 '24 02:06 zealX

vsc 1.90.1 检查发现默认快捷键中有这玩意:

{ "key": "ctrl+win+t",            "command": "extension.cursorTip", "when": "editorTextFocus" },。

尝试使用keybindings.json覆盖掉这个失败:

[ { "key": "ctrl+win+t",            "command": "extension.fileheader", "when": "editorTextFocus" }, ]

回退到4.9.2可以正常使用,我现在是使用这个版本,不升级

wekerSnail avatar Jun 17 '24 05:06 wekerSnail

换成ctrl+windows+其他未占用快捷键就能用了

Hrsnnnn avatar Jul 24 '24 08:07 Hrsnnnn

vsc 1.90.1 检查发现默认快捷键中有这玩意:

{ "key": "ctrl+win+t",            "command": "extension.cursorTip", "when": "editorTextFocus" },。

尝试使用keybindings.json覆盖掉这个失败:

[ { "key": "ctrl+win+t",            "command": "extension.fileheader", "when": "editorTextFocus" }, ]

还是不生效

nonlz avatar Aug 22 '24 03:08 nonlz

https://github.com/OBKoro1/koro1FileHeader/issues/611#issuecomment-2303959758

此法可行

nonlz avatar Aug 22 '24 07:08 nonlz