【问题标题】:How to disable unnecessary autocomplete suggestions in VS Code?如何在 VS Code 中禁用不必要的自动完成建议?
【发布时间】:2021-02-17 03:20:25
【问题描述】:

我在 VS Code 中看到奇怪的自动完成建议,似乎没有任何上下文。我只期待来自我的 TS 打字的建议。这些正确显示在建议列表的顶部,但是有很多选项让我感到困惑,例如#endregion, #region, async arrow function, ...

有谁知道:

  • 它们来自哪里?
  • 如何禁用它们?

【问题讨论】:

    标签: typescript visual-studio-code autocomplete vscode-settings


    【解决方案1】:

    自己找到了答案,就是这个设置:

    {
        "editor.snippetSuggestions": "none"
    }
    

    【讨论】:

    • 在 VSCode 1.63 中,我们有 multiple language specific settings,我们可以用它来分隔 sn-p 隐藏。例如,我将它用于 TypeScriptTypeScript React 文件,因此此设置位于 "[typescript][typescriptreact]".
    猜你喜欢
    • 1970-01-01
    • 2021-12-05
    • 2019-06-10
    • 2022-07-20
    • 2021-11-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多