- Make a file called jsconfig.json:
{
"typeAcquisition": {
"include": [
"jquery"
]
}
}
-
Save that file to the root (AKA right next to) of where your JS file is (copy the same file for each jQuery project). You may want to add the file to .gitignore before you commit.
-
Restart VS Code - V E R Y I M P O R T A N T ! !
-
Now you can use plugins:
- The best jQuery plugin: https://marketplace.visualstudio.com/items?itemName=kspearrin.jQueryCodeSnippets
- Or choose another according to your preferences
O-Right!
Thank you so much for this, is simply but very useful, I am also using jquery directly inside my project without a CDN using a minimize version of the code of Jquery and using two scripts on the head of my html with the async attribute