无法禁用Visual Studio代码中的建议

时间:2019-10-29 18:54:28

标签: visual-studio-code vscode-settings

我一直在尝试通过更改settings.json中的以下内容来禁用VSC中的建议,但是它对我没有作用。我在做什么错了?

    // OPTIONAL WORD WRAPPING
    // Controls if lines should wrap. The lines will wrap at min(editor.wrappingColumn, viewportWidthInColumns).
    "editor.wordWrap": "off",

    // Controls the indentation of wrapped lines. Can be one of 'none', 'same' or 'indent'.
    "editor.wrappingIndent": "none",

    // TURN OFF AUTOCOMPLETION
    // Controls if quick suggestions should show up or not while typing
    "editor.quickSuggestions": false,

    // Controls the delay in ms after which quick suggestions will show up
    "editor.quickSuggestionsDelay": 90,

    // Enables parameter hints
    "editor.parameterHints": false,

    // Controls if the editor should automatically close brackets after opening them
    "editor.autoClosingBrackets": false,

    // Controls if the editor should automatically format the line after typing
    "editor.formatOnType": false,

    // Controls if suggestions should automatically show up when typing trigger characters
    "editor.suggestOnTriggerCharacters": false,

    // Controls if suggestions should be accepted 'Enter' - in addition to 'Tab'. Helps to avoid ambiguity between inserting new lines or accepting suggestions.
    "editor.acceptSuggestionOnEnter": "off"
}```

2 个答案:

答案 0 :(得分:0)

我只是将您的设置复制粘贴到我的settings.json文件中,然后单击保存。它对我有用,不再需要智能。您是否使用VS Code编辑文件然后单击“保存”?如果它不起作用,则可能尝试重新安装vs代码,然后重试。我敢打赌,您没有存钱。另外,我通过首先进入设置,然后单击表示“在settings.json中编辑”的选择之一来打开文件。我要做的另一件事是在settings.json上单击保存后,我还必须返回到设置并手动取消选中所有这些选项:

enter image description here

搜索“建议”

答案 1 :(得分:0)

尝试将此行添加到settings.json。不是永久性修复,但可以充当临时性修复。 该行:

"editor.suggestOnTriggerCharacters": false