IntelliJ IDEA 2016.1 Help


IntelliJ IDEA enables you to use Groovy language and Groovy-based frameworks.

In this section:

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

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:
    • Code completion for keywords, labels, variables, parameters and functions.
    • Chained expression completion.
    • Error and syntax highlighting.
    • Code formatting and folding.
      For example, all closures that have their parameters described in the separate line are formatted the following way:
      def cl = { param1, param2 -> body() }
    • Numerous code inspections and quick-fixes.
    • Ability to check what generics to specify for a method call or for a type variable using Parameter info (Ctrl+P).
  4. Code generation
  5. Common and specific refactorings.
  6. Numerous ways to navigate through the source code, among them:
  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 Console).
  14. Ability to add @Builder annotation. IntelliJ IDEA supports all Strategies from the standard library as well as code completion and navigation.
  15. IntelliJ IDEA supports the Expression Type action for Groovy expressions. You can use Ctrl+Shift+P to see the expression type without clicking the mouse.

See Also


External Links:

Last modified: 13 July 2016