Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Prevent autocomplete in Visual Studio Code

In the most recent version of Visual Studio Code I've found out that the

"editor.acceptSuggestionOnCommitCharacter": false

configuration disables this behavior.


By 2016, Visual Studio Code is pretty cool and ready for prime time. But I still haven't found a way to simply turn off autocompletion completely.

But they do have some things in their documentation: Customizing IntelliSense

Basically, I put this in my settings.json to try and turn it off for the workspace. But I still have to evaluate this.

// Place your settings in this file to overwrite default and user settings.
{
    // Controls if quick suggestions should show up while typing
    "editor.quickSuggestions": { "other": false, "comments": false, "strings": false },

    // Controls if suggestions should be accepted with "Enter" - in addition to "Tab". Helps to avoid ambiguity between inserting new lines and accepting suggestions.
    "editor.acceptSuggestionOnEnter": "off",

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

    // Enable word based suggestions
    "editor.wordBasedSuggestions": false
}

This works for me as of 2019-May-17.

"editor.acceptSuggestionOnCommitCharacter": false,
"editor.acceptSuggestionOnEnter": "off",
"editor.hover.enabled": false,
"editor.minimap.enabled": false,
"editor.parameterHints.enabled": false,
"editor.quickSuggestions": false,
"editor.quickSuggestionsDelay": 10,
"editor.suggest.snippetsPreventQuickSuggestions": false,
"editor.suggestOnTriggerCharacters": false,
"editor.wordBasedSuggestions": false,

This isn't the correct answer, but it might be an even better option. Increase:

Editor: Quick Suggestions Delay

from 50 ms (default) to 500-1000 ms.

In this case, you'll have half a second to beat the autocomplete option, which may be enough for 95% of the time, and you won't lose the functionality that you might want in some cases.


In the current version of Visual Studio Code, add this to your user settings:

"editor.quickSuggestions.other": false

This disables most of the spurious suggestions.


Reiterating the answer to make it easy for people skimming: Open your settings with + , or Ctrl + ,.

{
    "editor.quickSuggestions": false
}