Skip to content

生成函数注释后,光标没有转移到description:后面,而是停留在原来位置 #512

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
thunderbolt-fire opened this issue Aug 27, 2022 · 4 comments

Comments

@thunderbolt-fire
Copy link

image

@KbyteTutu
Copy link

相同问题

@KbyteTutu
Copy link

KbyteTutu commented Sep 22, 2022

我解决了。。。说起来算是推荐配置写错了,把这段的description改成Description就好了。。。

    "fileheader.cursorMode": {
        "description": "", // 函数注释生成之后,光标移动到这里
        "param": "", // param 开启函数参数自动提取 需要将光标放在函数行或者函数上方的空白行
        "return": "",
    },

当然这会让注释看起来怪怪的,可以用specialOptions修改

"specialOptions":  { "Description": "description"},

@DzlqBL
Copy link

DzlqBL commented Sep 23, 2022

将Description换成description会连带文件头注释的Description一起改,会很丑(因为文件头注释的其他单词都是首字母大写的)
这个问题说白了,就是文件头注释和函数注释的description没有分开,而是使用了同一个对象。我是通过在源码里添加了自己的检测对象解决上述问题的。
希望作者之后能够分开两个description

@OBKoro1
Copy link
Owner

OBKoro1 commented Jan 29, 2023

更新插件,特殊字段已更新:函数注释特殊字段为description,头部注释的特殊字段为Description,用于区分。

觉得插件不错的话,点个Star吧~ ❤️

@OBKoro1 OBKoro1 closed this as completed Jan 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants