在 Visual Studio Code 中进行内联建议时,GitHub Copilot 发出烦人的声音

Chi*_*oft 15 visual-studio-code vscode-extensions github-copilot

问题陈述

在过去的几天里,我注意到 GitHub Copilot 每次提出代码片段建议时都会发出声音。起初,我以为我的电脑出了问题,担心键盘上的某个按键卡住了。我花了两天时间才弄清楚声音实际上是来自 GitHub Copilot。

另一个问题是,我检查了扩展程序的设置,发现与禁用它产生的声音无关,并且该插件没有更新到任何更高版本。

要求

我如何让这种声音消失,因为每次提出代码建议时它实际上都让我烦恼?

Mar*_*ark 19

我建议你禁用相当新的设置

Audio Cues: Line has Inline Suggestion
Run Code Online (Sandbox Code Playgroud)

从vscode 1.87开始,这将是:

Accesibility > Signals: Line has Inline Suggestion
Run Code Online (Sandbox Code Playgroud)

如果这不起作用,有一个设置可以有效禁用所有音频提示:

Audio Cues: Volume   // set to 0
Run Code Online (Sandbox Code Playgroud)

从 vscode v1.87 开始:

Accesibilty > Signals > Sounds: Volume
Run Code Online (Sandbox Code Playgroud)

  • 您可以通过以下方式放置此值:扩展 > GitHub Copilot>(单击齿轮)扩展设置 > 按照“在 settings.json 中编辑”然后将: `"audioCues.volume": 0` 添加到 json 文件。 (12认同)