Despite the fact that this question was quite a lot of time, I thought that I could help someone who comes across the same issue.
So here. And this is for the latest version of VS Code at the time of writing.
For true intellisense, that is, for example, you intend to get all the methods associated with the โconsoleโ as soon as you press โ.โ., You can use the corresponding Typescript definition file. Now I agree that this fix is โโtargeted at node and it needs the same with npm on your system. But still, it works for all the basic JavaScript work you may encounter.
for Linux, for this you need "npm" and install the Typescript Definition Manager (tsd) globally.
npm install -g tsd
then within your current project directory (or by going to the project directory) open a terminal window and add the following lines
tsd query node --action install tsd query express --action install
then as soon as you open your .js file in the current directory, you will get the correct autofill / intellisense for all DOM objects and other possible things.
This worked for me, and this is the only reason I use VSCode for linux (at least for JavaScript, although I like LightTable too)
for more information (and clarification, if I cannot be clear enough anyway), follow this link:
Node.js applications in VS code
prodSy
source share