Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tone down javascript intellisense

I find the default intellisense suggestions for Javascript irrelevant. Too many native browser functions I will never use.

Is there any way to turn off/limit intellisense? e.g. hide browser methods like the one in the link above.

like image 357
Bird Law Avatar asked Dec 02 '25 10:12

Bird Law


1 Answers

To disable the default set of globals, create a jsconfig.json file at the root of your project with the content:

{
  "compilerOptions": {
    "lib": ["es6"]
  }
}

This prevents the TypeScript service that VSCode uses for JavaScript IntelliSense from automatically including information about the DOM api.

You can read about all the avalible lib configuration options in the TypeScript documentation.

like image 92
Matt Bierner Avatar answered Dec 05 '25 00:12

Matt Bierner



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!