Groovy code-completion in IntelliJ

JetBrains improved the custom file type support in IntelliJ, in the Irida EAPs. If you have defined your Groovy syntax file correctly, you can have syntax highlighting, brace highlighting, and even... code-completion!

In my Groovy syntax file (which works in Irida #3185), I defined two sets of keywords: one for the keywords of the language, and the other one for the Groovy methods, like each(), findAll(), etc. And guess what? Simply hit CTRL-Space as usual, and presto, you can complete your code.

Here is a little picture of what it looks like:

The completion works only for keywords and the Groovy methods, but until someone develops a Groovy plugin for IntelliJ IDEA, this basic completion rocks!


© 2012 Guillaume Laforge | The views and opinions expressed here are mine and don't reflect the ones from my employer.