Search code examples
javascriptwebglvisual-studio-code

How to setup WebGL autocomplete on Visual Studio Code?


I need to develop a game HTML5 and WebGL on JS, but the editor does not suggest methods, fields, enums related to WebGL to become easier. Any ideas?


Solution

  • You should download WebGl.d.ts, for example from here

    And reference this file in first string of your JS file:

    /// <reference path="webgl.d.ts" />