IntelliJ IDEA 12.1.0 Web Help

10.5+

This part concerns the issues related to Groovy, and IntelliJ IDEA's specific techniques that become available when Groovy support is enabled.

In this section:

Note

Make sure that the desired SDK is downloaded and installed on your computer, and the libraries are properly configured.

Also, make sure that Groovy plugin is enabled in IntelliJ IDEA. The plugin is bundled with IntelliJ IDEA and activated by default. If the plugin is not enabled, enable the plugin.

Groovy Support

Note

IntelliJ IDEA supports Groovy up to version 2.0.

Groovy files are marked with fileTypeGroovy icon.

Groovy support includes:

  1. Possibility to create Java modules with Groovy facet.
  2. Ability to create an extension module to support custom extension methods.
  3. Coding assistance:
  4. Code generation
    • 11.1+ Inserting, expanding, and generating code blocks using live templates.
    • Creating various applications elements via intention actions.
    • Possibility to create line and block comments (Ctrl+Slash; Ctrl+DivideCtrl+Slash; Ctrl+Divide/Ctrl+Shift+Slash; Ctrl+Shift+DivideCommand Shift Slash; Command Shift Divide; Command Shift Slash; Command Shift Divide).
  5. Common and specific refactorings.
  6. Numerous ways to navigate through the source code, among them:
    • Navigating with Structure View.
    • Navigate | Declaration (Ctrl+BCtrl+B).
    • Navigate | Implementation (Ctrl+Alt+BCtrl+Alt+B) from overridden method / subclassed class.
  7. Advanced facilities to search through the source code.
  8. Viewing reference information.
  9. Possibility to generate documentation, created according to GroovyDoc syntax.
  10. Possibility to compile mixed Groovy and Java code.
  11. Running and debugging.
  12. Possibility create, and perform tests.
  13. Access to a Groovy console in any Java project (Tools | Groovy Shell).

See Also

Concepts:

External Links:

Web Resources: