Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I disable VSCode's suggestions for language keywords?

Currently, Visual Studio Code offers helpful hints on common language keywords like for and class and enum (I'm using Typescript). I don't need assistance with these words - they're just noise, blocking me from seeing more relevant entries.

Is there a way I can disable suggestions for 'language keywords' only, but leave all the rest?

like image 921
Sebastian Nemeth Avatar asked Mar 05 '18 07:03

Sebastian Nemeth


People also ask

How do I turn off auto suggestions in Vscode?

By default, VS Code shows snippets and completion proposals in one widget. You can control the behavior with the editor.snippetSuggestions setting. To remove snippets from the suggestions widget, set the value to "none" .

How do I disable IntelliSense?

You can enable or disable particular IntelliSense features in the Options dialog box, under Text Editor > C/C++ > Advanced. To configure IntelliSense for single files that aren't part of a project, look for the IntelliSense and browsing for non-project files section.

What is enable suggestions in VS code?

The suggestion list of Basic completion appears when you press the default Visual Studio IntelliSense shortcut Ctrl+Space .

What is VS code IntelliSense?

IntelliSense. Visual Studio Code's JavaScript IntelliSense provides intelligent code completion, parameter info, references search, and many other advanced language features. Our JavaScript IntelliSense is powered by the JavaScript language service developed by the TypeScript team.


3 Answers

No, as of VS Code 1.21 you cannot filter out just the keyword suggestions in TypeScript and JavaScript.

Please file a feature request if you'd like to see this supported

like image 71
Matt Bierner Avatar answered Oct 07 '22 05:10

Matt Bierner


Please note that you now need to use:

"[typescript]": {
  "editor.suggest.showKeywords": false
}

which deprecates:

"[typescript]": {
    "editor.suggest.filteredTypes": {
        "keyword": false
    }
}
like image 2
Amelio Vazquez-Reina Avatar answered Oct 07 '22 06:10

Amelio Vazquez-Reina


I am using version 1.51.1 and i have perfectly disabled the keyword suggestion by adding these lines in settings.json

"editor.suggest.showKeywords": false,
like image 1
Mehbub Rashid Avatar answered Oct 07 '22 04:10

Mehbub Rashid