4

I'm trying to learn Grails. I'm using SpringSource toole suite. I expected to find code-completion, syntax highlighting and more things like that in the IDE. Nothing like that! Any advice?

Brock Adams
  • 90,639
  • 22
  • 233
  • 295
Fabio B.
  • 9,138
  • 25
  • 105
  • 177

6 Answers6

6

Did you enable the Groovy and Grails support? It's not there by default but it's trivial to configure. See http://grails.org/STS+Integration/

Burt Beckwith
  • 75,342
  • 5
  • 143
  • 156
2

IntelliJ from JetBrains has all that and more. It's not free, but the price is worth it.

duffymo
  • 305,152
  • 44
  • 369
  • 561
2

If you're on a Mac, you can use TextMate and install Groovy/Grails bundle. You will have code snippets, that is some kind of completion.

If you're on Windows/Linux/Mac you can use Redcar, that was made for(and in) Ruby but has Groovy/Grails support. It also have code snippets.

I strongly recommend for learning that you don't use object inspection and dynamical code completion in a dynamic language in order to avoid IDE addiction and dependency.

I personally prefer unobtrusive code editor, that let we deal with textcode directly without clutter, allowing us to make mistakes early and understand better the language (and the framework). I use it even in production work.

caiofbpa
  • 21
  • 2
1

I second IntelliJ, but the free edition could suffice, it has groovy support, though Grails support is in the paid version only.

9000
  • 39,899
  • 9
  • 66
  • 104
  • 1
    It is possible to use Community Edition for Grails projects, but you'll miss out on a lot of great features. You'll get Groovy code completion though. – rlovtang Dec 19 '10 at 17:40
1

I'm using IntelliJ Community Edition. As I see, the difference between free editors is not much. In face, I use IntelliJ Community just because of its simple interface. It also supports syntax highlight/code completion for groovy/java, & somehandy functions like search/go to...

In short, if you want full support, the IntelliJ Premium is great, but you must pay for it. For the free rest, you can even choose any editors you want.

Hoàng Long
  • 10,746
  • 20
  • 75
  • 124
0

i use IntelliJ Ultimate and it's the best way to go but if you want a free solution then Netbean 6.5 an up supports groovy/grails code highlight / Code completion natively and is free.

z.eljayyo
  • 1,289
  • 1
  • 10
  • 16