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?
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" .
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.
The suggestion list of Basic completion appears when you press the default Visual Studio IntelliSense shortcut Ctrl+Space .
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.
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
Please note that you now need to use:
"[typescript]": {
"editor.suggest.showKeywords": false
}
which deprecates:
"[typescript]": {
"editor.suggest.filteredTypes": {
"keyword": false
}
}
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,
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With