Jump to content

phaser auto completion with brackets


speedo
 Share

Recommended Posts

how to use phaser auto completion in brackets
--------------------------------------------

install ternific (extension) [brackets]
after that,
go to ::
for windows::(mac and ubuntu might be quite similar)
C:\Users\username\AppData\Roaming\Brackets\extensions\user\ternific\node_modules\tern\plugin

and paste phaser.js (auto completion api)
(right click and save)
http://redchilligame.com/tutorials/vim_phaser/js/phaser.js

create .tern-project at the root dir. of your project file
and paste and save

{
"ecmaVersion": 6,
"libs": ["browser"],
"loadEagerly": [],

"plugins": {
"phaser" : {},
"doc_comment": true
}
}

enable ternific::
at right top side of file option menu, click the ternific option
file>ternific

--> now you can use phaser autocompletion with tern-documentation/tern-def

bonus:: install phaser-chain extension ( for phaser api documentation)

credits::

http://redchilligame.com/how_to_use_phaser_with_vim

 

brackets_phaser_autoc.PNG

brackets_phaser_autoc2.PNG

Edited by speedo
samples added
Link to comment
Share on other sites

  • 4 months later...

Hi! I followed all the steps but I can't get to, how to create a '.tern-project '.

To be honest I don't know how to. I've searched over the internet but no one explain something like that, and there's no video or something about it.

Maybe I'm too dumb for this? I don't know, but please I only need this part to make this work. I need this auto-completion in my life so much lol.

 

Regards,

- Eng. Aguirre Albert.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...