Jump to content

Babylon.js Intellisense and Auto-complete


Recommended Posts

  • 1 month later...

from this post

1. Download http://hugos.site/babylonjs.json   and put it in your project folder
2. Get the atom plugin "atom-ternjs"
3. Make a file called ".tern-project" in your project folder and add this

{
  "ecmaVersion": 6,
  "libs": ["babylonjs"]
}

4. Restart atom and It should give you hints if you start writing BABYLON.

I personally use this ".tern-project" file:

{
  "ecmaVersion": 6,
  "libs": [
    "browser",
    "babylonjs"
  ],
  "loadEagerly": [
    "path/to/your/js/**/*.js"
  ],
  "dontLoad": [
    "node_modules/**",
    "path/to/your/js/**/*.js"
  ],
  "plugins": {
    "modules": {},
    "es_modules": {},
    "node": {},
    "doc_comment": {
      "fullDocs": true,
      "strong": true
    }
  }
}

because it enables autocompletion when babylonjs is imported like this:

  import {
      Scene,
      Vector3,
      Mesh
    } from "babylonjs";


 

Link to post
Share on other sites
  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...