Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 20 Next »

JetBrains, the makers of IntelliJ IDEA, are continually working on improving support for Groovy, Grails, Griffon, Gradle as well as other GR8 technologies. Check out the latest news and tips and tricks at the JetBrains DZone or the IntelliJ IDEA bloghttp://www.jetbrains.com/idea/?utm_source=groovy_home&utm_media=Docs. Consider also watching some of the practical screencasts.

Download & Installation 

The plugin requires IntelliJ IDEA 7 to function. Install the plugin via the IDEA plugin manager (you can find it listed as "JetGroovy"). After installing the plugin via the plugin manager, you will have to restart idea and then configure the plugin via the settings panel so that the plugin knows where to find your Groovy and (optionally) Grails installation directories.

Features

The JetGroovy plugin provides a rich set of features for both Groovy and Grails development. Here, we're listing the main features, but you can find out more on JetGroovy Groovy features page and the JetGroovy Grails features page.

Editing

  • Syntax highlighting
  • Error highlighting
    o Unresolved classes marked as errors
    o Unresolved unqualified properties marked as warnings
    o Incompatible types assignments marked as warnings
    o Inapplicable method calls marked as warnings
  • Code folding
  • Code formatter
  • Comments and "To Do" view support
  • "add missing import" intention
  • Various refactorings
    • move, rename variables, etc

Execution, Debugging & Compilation

  • Debugging support (setting breakpoints, view stack)
  • GDK configuration
  • Grails configuration
  • Run configuration for Groovy scripts
  • Make or rebuild java+groovy project entire

Code Completion

  • context sensitive keyword completion
  • Completion of methods, fields, classes
    o Completion makes use of type inference
    o Default methods completed
    o Swing builder methods are completed, swing properties are completed in method argument list
  • Resolve
    o Resolve groovy to groovy classes, methods, fields
    o Resolve groovy to java classes, methods, fields
    o Resolve java to groovy classes, methods, fields

Surround with (Alt+Ctrl+T)

  • if () {} / else {}
  • while () {}
  • try / catch / finally
  • closure {}
  • (Type) expr

Introduce variable (Alt+Ctrl+V)

  • Introduce variable
  • Offer the default type and variable name

Structure view

Shows

  • classes
  • methods
  • fields
    found in groovy file

File structure (Ctrl+F12)

  • The popup window contains classes, methods, fields.

Find usage (Alt+F7)

  • Implements groovy classes search

Class search (Ctrl+N)

  • Searches class by prefix of class groovy name

Grails

  • Grails SDK configuration
  • Grails controller, view, domain class, job, script, service, taglib creation
  • Grails generators are built in; output to console

Wish list

A user wish list is available:

  • No labels