Kwame

Babylon Autocompletion

Recommended Posts

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 :wacko:

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

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.)
 

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
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:

bjs_project_structure.png

Share this post


Link to post
Share on other sites

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.