【问题标题】:Not seeing how to disable typing auto-suggest drop-down in VS Code看不到如何在 VS Code 中禁用键入自动建议下拉菜单
【发布时间】:2019-07-24 02:55:15
【问题描述】:

这似乎发生在最近的更新中,但是当我开始输入任何可能有建议的内容时,它会下拉一个框,显示可能的完成建议;它会掩盖代码并分散注意力,我只希望它在我手动激活它时发生,例如使用 Ctrl+Space。

但是,我没有找到在键入时阻止它发生的选项...我能找到的最好的方法是在文件 > 首选项 > 设置 > 编辑器:快速建议(控制是否在键入时自动显示建议。 ),它只有一个指向“在 settings.json 中编辑”的链接,当我点击它时,我得到了这些选项:

{
    "editor.hover": false,
    "editor.wordBasedCompletion": true,
    "editor.parameterHints": false,
    "editor.parameterHints.cycle": true,
    "editor.hover.delay": 3000,
    "editor.hover.sticky": false,
    "editor.parameterHints.enabled": false,
    "liveServer.settings.donotShowInfoMsg": true,
    "files.autoSave": "onWindowChange",
    "editor.fontSize": 12,
    "terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
    "debug.node.autoAttach": "on",
    "terminal.external.windowsExec": "C:\\Program Files\\Git\\git-bash.exe",
    "terminal.explorerKind": "external",
    "editor.quickSuggestionsDelay": 0,
    "workbench.colorTheme": "Default Light+",
    "editor.suggestOnTriggerCharacters": false,
}

那里的一切看起来都是正确的...我更改了一些,但并没有解决问题。我不确定我应该点击什么或什么来禁用这个烦人的功能。

【问题讨论】:

  • 并非所有设置都列在 settings.json 中。当您单击“在 settings.json 中编辑”时,它会告诉您可以编辑默认值,对于快速建议,默认值是 here

标签: visual-studio-code


【解决方案1】:

我使用的是 1.36.1 我认为您正在寻找的设置是

"editor.quickSuggestions": {
        "other": false,
        "comments": false,
        "strings": false, 
    }

请在settings.json中添加

【讨论】:

  • 那没有GUI设置?
  • 我不这么认为。正如您在问题中所说的那样:只有一个指向“在 settings.json 中编辑”的链接;我也看到了。
猜你喜欢
  • 1970-01-01
  • 2019-06-10
  • 2021-12-05
  • 2021-02-17
  • 2021-11-16
  • 2021-07-10
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多