fariazz Posted August 11, 2015 Share Posted August 11, 2015 Does anyone know how to get API autocompletion to work for Babylon.js on Sublime Text? Using the SublimeCodeIntel plugin but it doesn't seem to pull API's from babylon.js Quote Link to comment Share on other sites More sharing options...
Dad72 Posted August 11, 2015 Share Posted August 11, 2015 You usually add a reference to .d.ts file file header.This file must babylon.d.ts beings in your project. /// <reference path="../Libs/babylon.d.ts" /> Quote Link to comment Share on other sites More sharing options...
fariazz Posted August 11, 2015 Author Share Posted August 11, 2015 Not sure I understand. Where do I find babylon.d.ts? Where do I put this code: /// <reference path="../Libs/babylon.d.ts" /> ? Quote Link to comment Share on other sites More sharing options...
Dad72 Posted August 12, 2015 Share Posted August 12, 2015 File babylon.d.ts here: https://github.com/BabylonJS/Babylon.js/tree/master/dist The code:/// <reference path="../Libs/babylon.d.ts" /> early in your files js (line 1) But maybe it works differently in sublime text Beings can help here: http://www.html5gamedevs.com/topic/534-typescript-and-autocomplete-in-sublimetext-help-needed/ and http://stackoverflow.com/questions/13661462/getting-full-js-autocompletion-under-sublime-text Quote Link to comment Share on other sites More sharing options...
fariazz Posted August 12, 2015 Author Share Posted August 12, 2015 Thanks for the help but I couldn't get it to work so opted to use Webstorm instead. 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.