Sebastian Nemeth
Sebastian Nemeth

Reputation: 6175

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?

Upvotes: 8

Views: 3254

Answers (3)

Mehbub Rashid
Mehbub Rashid

Reputation: 663

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,

Upvotes: 4

Amelio Vazquez-Reina
Amelio Vazquez-Reina

Reputation: 96448

Please note that you now need to use:

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

which deprecates:

"[typescript]": {
    "editor.suggest.filteredTypes": {
        "keyword": false
    }
}

Upvotes: 2

Matt Bierner
Matt Bierner

Reputation: 65593

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

Upvotes: 2

Related Questions