How does one disable web API suggestions in VSCode? Eg, if I type "id" I get a bunch of IndexDB suggestions. I'd like to disable this if possible.
Thanks!
Yes VS Code includes DOM completions in javascript by default. To disable this, create a jsconfig.json
at the root of your project and set "lib"
to "es6"
:
{
"compilerOptions": {
"target": "ES6",
"lib": ["es6"]
},
"exclude": [
"node_modules",
"**/node_modules/*"
]
}
This tells VS Code's intellsenese to only include the standard es6 library typings when providing intellisense.
You can find more information on support "lib"
settings here
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