EaselJS CodeCompletion for SublimeText2

Today I was trying to scrape the EaselJS-Classes for their public methods and properties to generate an EaselJs-CodeCompletion for SublimeText2. I had some difficulties getting a unified set of information for each method/property because the code does not seem to be consistently documenten. But well, here’s the result: It’s far from perfect but it works. Please feel free to fork it and help to make it better.

Github: https://github.com/olsn/SublimeText2-EaselJS-Completion

DemoImage: 

  • http://- rich

    Hey, thanks this looks great. I don’t get any suggestions from the createjs namespace, am i doing something incredibly dumb?

    thanks
    Rich

    • olsn

      Hm, when did you download it?
      During the first 20h after I opened the repository there was an error preventing me from pushing the correct completion-file, but if you downloaded it today, that should be fine.
      Also make sure that you choose the correct syntax, you have to choose: ‘JavaScript EaselJS’, not just ‘JavaScript’ – I have to see if I can activate it for both syntaxes.

      Hope that helps, cheers!

    • olsn

      Oh, or do you mean just all the constructors do not work?
      …somehow they got lost, I’ll fix that asap!

      edit: Just pushed a fix for most missing Constructors&Static methods to github, check it out to see if it works now.

      cheers

  • http://- rich

    Hey there, yeah it was the missing constructors – sorry for my poor description – but now it works! Thanks very much, this will be really useful

    Cheers

    • olsn

      Yeah, somehow that file got lost on the first checkin and i forgot to add those after recrawling it.
      Glad it works now! :)

  • Matt

    Any way to just use the code-completion and not syntax highlighting?
    I’m writing in coffeescript so want to keep my coffeescript syntax highlighting, but would still love to use the easeljs code-completion.

    • olsn

      yes, just open the JavaScript-EaselJS.sublime-completion and adjust the second line:
      “scope”: “easel-source.js”

      you can either change the scope or add an additional scope like this:
      “scope”: “easel-source.js source.coffee” (I believe that ‘source.coffee’ is the scope-name for coffeeScript)

  • Matt

    Brilliant! Thanks for that!

  • chris

    Hello there!

    I really like the colours in your code highlighting theme. Is it custom or a modded monokai downloadable from … ;-?

    • olsn

      it’s Monokai Bright – I think that came packaged with Sublime – if I remember correctly, if not you can find it at Google ;-)

  • gink

    is it only for sublime text2? as if the text 3 dont work

    • olsn

      I rarely upgrade working applications on my systen – so: I haven’t tested with Sublime3 yet, but I could imagine that it should work just the same way

  • Metsa

    Couldn’t it work with the javascript syntax at the same time? I lost my javascript completion :(

  • Mike

    My javascript complete not working. I copy the folder to ~/.config/sublime-text-2/Packagese I use the syntax easerjs but its not work. Please, help me. Thanks.

  • Mike

    I use Debian 7 and sublime text2