Kwame Posted September 24, 2016 Share Posted September 24, 2016 How can i do the babylon libary autocompletion for sublime text? ive looked eveywhere on forums but i cant find it. it will really help me when im programming. if not sublime text how can i do it for any text editor? is there is step by step guide? please help Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted September 24, 2016 Share Posted September 24, 2016 Will have something to do putting babylon.d.ts file where sublime likes it. If sublime does not handle d.ts files, you are screwed more than likely. Quote Link to comment Share on other sites More sharing options...
Kwame Posted September 24, 2016 Author Share Posted September 24, 2016 59 minutes ago, JCPalmer said: Will have something to do putting babylon.d.ts file where sublime likes it. If sublime does not handle d.ts files, you are screwed more than likely. what do you do or use to get autocompletion? Quote Link to comment Share on other sites More sharing options...
Dad72 Posted September 24, 2016 Share Posted September 24, 2016 For example if you use Visual Studio code, you can add a comment line like this at the beginning of file. /// <reference path="libs/babylon.d.ts" /> Otherwise you can find in the documentation of your code editor, how to add an external reference for the autocompletion Quote Link to comment Share on other sites More sharing options...
Kwame Posted September 24, 2016 Author Share Posted September 24, 2016 4 minutes ago, Dad72 said: For example if you use Visual Studio code, you can add a comment line like this at the beginning of file. /// <reference path="libs/babylon.d.ts" /> Otherwise you can find in the documentation of your code editor, how to add an external reference for the autocompletion i have visual studio express for desktop is that good enough? also i dont think i have babylon.d.ts where do i download? Quote Link to comment Share on other sites More sharing options...
Dad72 Posted September 24, 2016 Share Posted September 24, 2016 You'll find it on the deposit github: https://github.com/BabylonJS/Babylon.js/tree/master/dist/preview release Quote Link to comment Share on other sites More sharing options...
8Observer8 Posted September 24, 2016 Share Posted September 24, 2016 2 hours ago, Kwame said: i have visual studio express for desktop is that good enough? also i dont think i have babylon.d.ts where do i download? I tryed but it doesn't work in Visual Studio 2015 If someone uses VS, I wrote this instruction: - get "babylon.2.4.max.js" file from github above - open VS - select in .menu -> "Tools" -> "Options..." - type in Search: javascript - select "References" in IntelliSense section - select "Implicit Web" in "Reference Group" - click on "..." button in "Add a reference to current group" and select "babylon.2.4.max.js" - click on "OK" button Quote Link to comment Share on other sites More sharing options...
adam Posted September 24, 2016 Share Posted September 24, 2016 I use VS 2015 and all I do is include it in my project and it works. Quote Link to comment Share on other sites More sharing options...
8Observer8 Posted September 24, 2016 Share Posted September 24, 2016 I don't know but this line doen't work for me: Quote /// <reference path="libs/babylon.d.ts" /> Quote Link to comment Share on other sites More sharing options...
Dad72 Posted September 24, 2016 Share Posted September 24, 2016 The path must match where your file .d.ts is Quote Link to comment Share on other sites More sharing options...
8Observer8 Posted September 24, 2016 Share Posted September 24, 2016 12 minutes ago, Dad72 said: The path must match where your file. d.ts is How you can see on the screen below it is doesn't work on my case: Quote Link to comment Share on other sites More sharing options...
8Observer8 Posted September 24, 2016 Share Posted September 24, 2016 But if I make like this it works: Quote Link to comment Share on other sites More sharing options...
Kwame Posted September 24, 2016 Author Share Posted September 24, 2016 OK thank you i will do it Quote Link to comment Share on other sites More sharing options...
Dad72 Posted September 24, 2016 Share Posted September 24, 2016 Yes with "Microsoft Visual Studio". I was talking about in the case of using "Visual Studio code" editor. Quote Link to comment Share on other sites More sharing options...
BitOfGold Posted September 25, 2016 Share Posted September 25, 2016 I use JetBrains PHPStorm now, but previously used Sublime, I used this plugin:http://sublimecodeintel.github.io/SublimeCodeIntel/ It works, but no matter how I config Sublime with linters and sniffers and plugins, JetBrains is superior by light-years. I can set by directory and by file which source cde should it re-parse for autocompletion. (It is not cheap, and it is a performance hog because its Java.) Quote Link to comment Share on other sites More sharing options...
Kwame Posted October 4, 2016 Author Share Posted October 4, 2016 On 24/09/2016 at 8:05 PM, adam said: I use VS 2015 and all I do is include it in my project and it works. can someone explain more? Quote Link to comment Share on other sites More sharing options...
Kwame Posted October 7, 2016 Author Share Posted October 7, 2016 On 24/09/2016 at 10:08 PM, 8Observer8 said: But if I make like this it works: i did try. nothing why do i procrastinate? Quote Link to comment Share on other sites More sharing options...
adam Posted October 7, 2016 Share Posted October 7, 2016 It might have worked automatically for me because I used the typescript template when I started my project. Quote Link to comment Share on other sites More sharing options...
8Observer8 Posted October 8, 2016 Share Posted October 8, 2016 8 hours ago, Kwame said: i did try. nothing why do i procrastinate? Did you restart VS? And you need add "*.max.js" in option window. But in project (when you develop) you need use "*.min.js". I think you should just restart VS. Quote Link to comment Share on other sites More sharing options...
Kwame Posted October 8, 2016 Author Share Posted October 8, 2016 10 hours ago, 8Observer8 said: Did you restart VS? And you need add "*.max.js" in option window. But in project (when you develop) you need use "*.min.js". I think you should just restart VS. yes i restart. how do i make project? do i do new project?where do i need to put min.js in project? Quote Link to comment Share on other sites More sharing options...
Kwame Posted October 8, 2016 Author Share Posted October 8, 2016 17 minutes ago, Kwame said: yes i restart. how do i make project? do i do new project?where do i need to put min.js in project? what it looks like Quote Link to comment Share on other sites More sharing options...
8Observer8 Posted October 9, 2016 Share Posted October 9, 2016 On 08.10.2016 at 7:07 PM, Kwame said: how do i make project? In VS menu choose "File" -> "Open" -> "Web Site..." -> then create a folder and click the "Open" button On 08.10.2016 at 7:07 PM, Kwame said: where do i need to put min.js in project? You can use a project structure like this: Quote Link to comment Share on other sites More sharing options...
adam Posted October 9, 2016 Share Posted October 9, 2016 On 10/8/2016 at 0:07 PM, Kwame said: how do i make project? File > New > Project ... > Templates > Other Languages > Typescript Quote Link to comment Share on other sites More sharing options...
Kwame Posted October 9, 2016 Author Share Posted October 9, 2016 53 minutes ago, 8Observer8 said: In VS menu choose "File" -> "Open" -> "Web Site..." -> then create a folder and click the "Open" button You can use a project structure like this: it still won't work. am i doing something wrong? Quote Link to comment Share on other sites More sharing options...
8Observer8 Posted October 9, 2016 Share Posted October 9, 2016 Please, show me a screenshot how you set this: 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.