Home Download Buy Blog Forum Support

ST2: CoffeeComplete Plus

ST2: CoffeeComplete Plus

Postby justinmahar on Sat Feb 23, 2013 5:20 pm

I've been using CoffeeScript for a few months now and one thing I've been missing like crazy is autocompletions. Real autocompletions.

Well, they're finally here. Autocompletions for CoffeeScript. It's called CoffeeComplete Plus, or CC+.

This isn't your run-of-the-mill hard-coded autocompletion plugin. This plugin scans your coffee files and determines which methods and properties you have been defined, even adds tap stops for parameters, and displays them in a sexy list for you to pick and choose. It does a ton of other things, like hide "private" members prefixed with an underscore, supports built-in types like Array, Math and Object, allows for custom types like jQuery (which is provided out of the box), and supports type hinting for method return values, or for the times the plugin is stumped.

Autocomplete looks like this:
Code: Select all
○ property1
○ propertyTwo
○ someOtherProperty
● methodOne()
● methodTwo(arg1, arg2)
● theLastMethod(arg1, arg2, arg3)
Ⱶ○ inheritedProperty1
Ⱶ○ inheritedPropertyTwo
Ⱶ● inheritedMethod1()
Ⱶ● inheritedMethod2(arg1, arg2)


It also has a Goto Definition feature that allows you to jump to any class, method or variable definition. Even between files. Hells yeah. (Do this using ctrl+alt+d, or holding ctrl+alt and clicking on the name in the code.)

It's also highly configurable.

Check it out, play around with it, and let me know what you think.

You can view the README here: http://bit.ly/13wHIoS
justinmahar
 
Posts: 2
Joined: Sat Feb 23, 2013 3:52 pm

Re: ST2: CoffeeComplete Plus

Postby Stefano.Rausch on Sat Feb 23, 2013 10:49 pm

Thumbs up!
Stefano.Rausch
 
Posts: 29
Joined: Thu Feb 14, 2013 5:05 pm

Re: ST2: CoffeeComplete Plus

Postby lavrton on Sun Feb 24, 2013 9:55 am

Big thanks! Realy awesome work!
lavrton
 
Posts: 4
Joined: Wed Jan 30, 2013 10:18 am

Re: ST2: CoffeeComplete Plus

Postby AlexanderOcias on Thu Feb 28, 2013 11:21 pm

Wow, this is fantastic, I've been hanging out for something like this for so long!

If anyone wants to have the complete pop up automatically, you can add this to your user preferences:
Code: Select all
"auto_complete_triggers":
   [
      {"characters": ".@", "selector": "source.coffee"}
   ]


Two questions:
Is it possible to autocomplete constructors somehow?
Is it possible to make properties in a custom type point to another custom type? I'm making a createjs custom type, and I'd to set up autocomplete for things like [Shape].graphics(.drawRect, .beginFill, etc)
AlexanderOcias
 
Posts: 1
Joined: Thu Feb 28, 2013 11:03 pm

Re: ST2: CoffeeComplete Plus

Postby justinmahar on Thu Mar 07, 2013 5:43 pm

AlexanderOcias wrote:Is it possible to autocomplete constructors somehow?
Is it possible to make properties in a custom type point to another custom type? I'm making a createjs custom type, and I'd to set up autocomplete for things like [Shape].graphics(.drawRect, .beginFill, etc)


These are both on my to-do list. I have some refactoring to do before either of these can be realized. Properties and methods will eventually have a type property defined in custom types. These will be used to look up the suggestions for chained calls. This will be particularly helpful when chaining jQuery calls, and for the case you mentioned.
justinmahar
 
Posts: 2
Joined: Sat Feb 23, 2013 3:52 pm


Return to Plugin Announcements

Who is online

Users browsing this forum: tux. and 8 guests