Jonathan Arcane
Jonathan Arcane

Reputation: 37

Three.js Autocomplete in Visual Studio Code

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

Answers (2)

Ashcan
Ashcan

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

tiritor
tiritor

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

Related Questions