Sign in to follow this  
ragnarok

Help (or different Editor) with autocomplete from other files?

Recommended Posts

Hello everyone,

does anybody know a Javascript-Editor which understands code-completion from other files? For example I wanted to include phaser.js and begin the writing of my game in the next script-tag:

<!DOCTYPE html><html>  <head>    </head>  <body>    <script src="js/phaser.js"></script>    <script>      var myGame = new Phaser.    </script>  </body></html>

I somehow expected the editor (Brackets in that case) to hint me the methods and attributes of Phaser, but nothing of this happens. Is my Editor-Setup wrong and can this somehow be enabled? Do you maybe know another Editor able to give me the right hints?

 

I'm currently working directly at the end of the phaser.js file, where it works quite well, but I'm not exactly comfortable with this solution.

 

(Sorry for my english, I'm not a native speaker).

Share this post


Link to post
Share on other sites

Just working in a diffrent JS-file (still using Brackets) gives me the autocompletion, so here I go...

<!DOCTYPE html><html>     <head>        <script src="js/phaser.js"></script>     </head>    <body>        <script src="js/game.js"></script>    </body></html>

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...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.