Reputation: 37
I have been working through Mozilla game development docs. I am now onto the task of using my first 3D Javascript framework. It is called Three.js. The problem I now face is that my Visual Studio Code won't autocomplete this new syntax. I am using
Please help me get autocomplete to work.
Upvotes: 2
Views: 4851
Reputation: 71
And when you develop in Javascript, simply add a reference to the three library:
put this at the beginning of your code /// <reference path='js/three.js' />
read this article for more information.
Upvotes: 0
Reputation: 23
When you develop in TypeScript, try to install the definition module: types/three
It installs all definitions of used methods.
You can install it with npm install --save @types/three
Upvotes: 2