abhivaidya Posted January 14, 2017 Share Posted January 14, 2017 Hello community! I am using Atom and Brackets as my editors and want to get the intellisense and the auto-complete in JS, working for Babylon in these editors. Any idea how can I do that? Regards Quote Link to comment Share on other sites More sharing options...
HugoMcPhee Posted February 21, 2017 Share Posted February 21, 2017 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"; dbawel 1 Quote Link to comment Share on other sites More sharing options...
Florian Posted July 8, 2018 Share Posted July 8, 2018 Quote 1. Download http://hugos.site/babylonjs.json and put it in your project folder Thanks a lot @HugoMcPhee. It seems to work on my machine with atom Do you have a new version of the custom .JSON file or a way how to generate it on my own? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.