Jump to content

Phaser 3 tern plugin?


Recommended Posts

@iLKke Tern is the best if you want to code with JavaScript 5, but if you are fine to code with JavaScript 6, then VSCode is a great option, just include the Phaser TypeScript definitions into a jsconfig.json file.


Read here about how to do auto-completion in VSCode and JS: https://code.visualstudio.com/docs/languages/jsconfig

Link to comment
Share on other sites

  • 1 month later...

For anyone who wants intellisense/ autocomplete in their javascript scripts:

1.Add a "jsconfig.json" to your root folder. paste this code into it:

    "exclude": [


2. Create in the root folder a folder called "defs".

3. Download a file called "phaser.d.ts" - https://github.com/photonstorm/phaser3-docs/tree/master/typescript

4. Put the phaser.d.ts in the defs folder.

5. Make sure all your javascript scripts are under a folder called js.

6. Drink a margarita.


Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...