Is there a way to get VSC to auto suggest various functions within jquery? does the main Jquery js file need to be linked to the software somehow?
As an example I started typing this
$('#test').app
and it suggests append
?
You can trigger IntelliSense in any editor window by typing Ctrl+Space or by typing a trigger character (such as the dot character (.) in JavaScript). Tip: The suggestions widget supports CamelCase filtering, meaning you can type the letters which are upper cased in a method name to limit the suggestions.
VSCode is by far the most advanced Free and Open source text editor on the planet. If you want to use jQuery with VSCode then this post is for you. I'll discuss how you can turn on the VSCode's Intellisense (Auto complete) for your jQuery project. Its fairly simple to setup and the impact it creates is just crazy.
The suggestion list of Basic completion appears when you press the default Visual Studio IntelliSense shortcut Ctrl+Space . If necessary, you can always return to the Visual Studio's native's IntelliSense.
Try using $
in a .js file. If you move your cursor near the warning, a light-bulb will appear. Either with Ctrl+.
or by clicking on it, a code action will be proposed that will download and add a /// reference to jquery.d.ts that will give you all the nice IntelliSense for jQuery
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