In VScode, how can I choose the priority between two autocompletion extensions? (e.g. Github-copilot & autoDocstring)

huangapple go评论81阅读模式
英文:

In VScode, how can I choose the priority between two autocompletion extensions? (e.g. Github-copilot & autoDocstring)

问题

I am using VScode (version 1.80.2) with multiple extensions including github Copilot (v1.100.306) and autoDoctring (v0.6.1) which automatically generates a docstring template for python functions.
当我键入"""(在Python中开始一个文档字符串)时,有时会从github Copilot获得建议(通常是一句话),而其他时候则会从autoDocstring扩展中获得“Generate Docstring”的选项。
As the autoDocstring is more useful in this case, I would like to give it priority over the github Copilot extension, but without de-activating the copilot each time.
由于在这种情况下autoDocstring更有用,我想让它在github Copilot扩展之前运行,但又不想每次都停用copilot。
Thus, I am wondering if there is a way to set a priority between VScode autocompletion extensions?
因此,我想知道是否有一种方法可以在VScode自动完成扩展之间设置优先级?

While this contitutes rather an inconvenience than a major problem, I was searching for a solution and haven't found something so far. Currently, I try typing the """ with different speeds and sometimes get to the desired autoDocstring option and other times remain 'stuck' with the Copilot suggestion.
虽然这更像是一种不便而不是一个主要问题,但我一直在寻找解决方法,目前还没有找到。目前,我尝试以不同的速度输入""",有时会获得所需的autoDocstring选项,而其他时候则会被困在Copilot的建议中。

英文:

I am using VScode (version 1.80.2) with multiple extensions including github Copilot (v1.100.306) and autoDoctring (v0.6.1) which automatically generates a docstring template for python functions.
When typing """ (which starts a docstring in python) I sometimes get a suggestion from github Copilot (usually one sentence) and other times the option 'Generate Docstring' from the autoDocstring extension.
As the autoDocstring is more useful in this case, I would like to give it priority over the github Copilot extension, but without de-activating the copilot each time.
Thus, I am wondering if there is a way to set a priority between VScode autocompletion extensions?

While this contitutes rather an inconvenience than a major problem, I was searching for a solution and haven't found something so far. Currently, I try typing the """ with different speeds and sometimes get to the desired autoDocstring option and other times remain 'stuck' with the Copilot suggestion.

答案1

得分: 0

作为一种解决方法:

你可以分别为这两个扩展命令分配不同的快捷方式键。

In VScode, how can I choose the priority between two autocompletion extensions? (e.g. Github-copilot & autoDocstring)

英文:

As a workaround:

You can assign different shortcut keys to the two extended commands respectively.

In VScode, how can I choose the priority between two autocompletion extensions? (e.g. Github-copilot & autoDocstring)

huangapple
  • 本文由 发表于 2023年8月4日 22:32:44
  • 转载请务必保留本文链接:https://go.coder-hub.com/76836880.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定