Groovy and Grails
Groovy
Grails
IntelliJ IDEA is an intelligent Groovy IDE, which enables productive Groovy programming with: Groovy code editor with advanced coding assistance, smart completion, code quality maintenance with intelligent code inspections, quick-fixes, refactorings and more, plus Groovy on Grails support with dedicated visual application ER diagram, complete Groovy Server Pages support, including full coding assistance for inline Groovy code and markup, all tied together to create an excellent Groovy and Grails development environment.
Live Demo: Intelligent Groovy Live Demo: Groovy Advanced Coding Concepts
Groovy
Griffon Support
Griffon is integrated with IntelliJ IDEA similarly as Grails — you can add Griffon library to Groovy facet. As with Grails, a dedicated Griffon project view will appear together with a run/debug configuration.

Gradle Support
There is a lightweight support for Gradle build framework — you can add Gradle library to a Groovy facet and you can also run Gradle scripts using Ctrl+Shift+F10.
Groovy-aware debugger

IntelliJ IDEA best of the breed Java debugger power is at your disposal when you debug Groovy code: it is completely Groovy-aware, handles mixed Groovy/Java code and supports Groovy expressions evaluation.
Advanced Mixed-Language compiler
IntelliJ IDEA supports the smart Groovy compiler, which understands both Groovy and Java code and lets you seamlessly compile mixed-language projects.
Context-sensitive, type inference-aware code completion
IntelliJ IDEA offers smart Groovy coding assistance, capable of cross-resolution between Groovy and Java classes, methods and fields. Its advanced code completion helps you with:
- Dynamic properties and methods

- Property and method references in Groovy files
- Methods, fields, classes and keywords

- Default methods
- Swing builder methods and Swing properties

- Extended code completion with Smart Enter
- Move class/statement action
Smart code navigation assistance with structure view, class and usage search
IntelliJ IDEA features smart navigation around Groovy and Java code which lets you jump from one part of your project to another, quickly search for methods, variables and fields declaration and usages and to track everything via advanced navigation history.

Code formatting, highlighting and folding
IntelliJ IDEA colors, formats and folds your code to improve readability and make it easier to locate various code elements. You can also use the built-in templates to quickly modify arbitrary parts of the code.

Numerous code inspections and quick-fixes
IntelliJ IDEA thoroughly inspects source code and hunts various types of errors on-the-fly. It also highlights them in the code, suggesting automatic quick-fixes for almost any problem.
- Create field, variable or method from usage
- Spot unused assignments
- Spot variables that are not initialized before use
- InspectorGroovy inspections bundled

- Intention actions for generating equals/hashcode methods and constructors
- MissingReturn inspection
- Go to symbol action for Groovy files
Support for GroovyDoc
IntelliJ IDEA lets you quickly lookup and create GroovyDoc annotations to document your code. All coding assistance works fine inside of GroovyDoc and comments.
- Automatic resolution and usage search
- Coding assistance inside of the comments body
Groovy application testing
Fully integrating with JUnit and TestNG for improved automatic testing
Gant build tool support
- Advanced coding assistance for Gant targets, including integration with Ivy
- Gant run configuration
Auto-generation of run configuration for Groovy Script with Ctrl-Shift-F10
Groovy-aware refactorings and imports optimization
With IntelliJ IDEA you can easily transform your code using the rich set of cross-language refactorings that are capable of working across Groovy and Java code.
- Extract method
- Extract variable
- Inline method
- Convert method parameter to map-parameter entry
- Dynamize invalid interface instantiation
- Support for static dynamic methods
Grails
Dedicated Grails Project View
There is a dedicated Grails Project View reflecting logical structure of your Grails Web applications. This view can be selected from the View as list at the top of Project tool window.

Dedicated Grails SDK configuration for running and debugging Grails applications
With IntelliJ IDEA you can easily run, deploy and debug your Grails applications, with the help of the built-in run configuration.
Built-in Grails generators
IntelliJ IDEA features the support for built-in generators that let you quickly create various elements for your Grails applications:
- Controllers
- Views
- Domain classes
- Jobs
- Scripts
- Services
- Taglibs
Groovy Server Pages (GSP) support
IntelliJ IDEA provides you the complete coding assistance when you're writing GSP code. It fully understands your project structure and provides smart completion for:
- Inline Groovy code

- GSP markup

- JavaScript code, both in g:javascript and script tags

Coding assistance features also support implicit properties and custom tags defined in Groovy code

- Completion of attributes for default Grails tags, based on project Tag Library Descriptor
- Completion for Domain classes' dynamic methods and finders
- Quick invoke for Grails Scripts
- Convenient Grails plugins management
- Run configuration for Grails tests
Support for Grails plugins
All installed Grails plugins are automatically added to project modules, and their classes and libraries become available for code completion and other assisting features.

