Prevent autocomplete in Visual Studio Code

前端 未结 8 2020
臣服心动
臣服心动 2020-11-30 20:48

I\'m using the new Visual Studio Code, which is clearly not ready for prime time yet, but I\'m hoping to resolve a problem I\'m having.

In a SQL file, any time you ty

相关标签:
8条回答
  • 2020-11-30 21:25

    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.

    0 讨论(0)
  • 2020-11-30 21:29

    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
    }
    
    0 讨论(0)
  • 2020-11-30 21:34

    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.

    0 讨论(0)
  • Reiterating the answer to make it easy for people skimming: Open your settings with + , or Ctrl + ,.

    {
        "editor.quickSuggestions": false
    }
    
    0 讨论(0)
  • 2020-11-30 21:42

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

    "editor.acceptSuggestionOnCommitCharacter": false
    

    configuration disables this behavior.

    0 讨论(0)
  • 2020-11-30 21:43

    I made this change for version 1.22.1:

    "editor.wordBasedSuggestions": false
    

    This is preventing completion of a word which has already occurred.


    Do the above changes in user settings, which can be found under menu FilePreferencesSettings.

    0 讨论(0)
提交回复
热议问题