Studio and IntelliJ IDEA configuration

Guidewire Studio is bundled with IntelliJ IDEA Community Edition. You can configure many aspects of Studio using the same configuration that you would use for the standalone IntelliJ IDEA application. Some configuration changes require special procedures.

Configure Studio to use your own IntelliJ IDEA installation

Guidewire Studio can run with your own installation of IntelliJ IDEA instead of the bundled one.

About this task

Studio can run with either IntelliJ IDEA Community Edition or Ultimate Edition. To use the Ultimate Edition, you must obtain your own license for it from IntelliJ. For information about the supported versions of IntelliJ IDEA, visit the Guidewire Community and search for knowledge article 1005, “Supported Software Components”.

Studio uses the IDEA_HOME environment variable to determine the IntelliJ IDEA installation that it runs:
If IDEA_HOME is set
Studio runs the IntelliJ IDEA installation at the path specified by IDEA_HOME. If a compatible release of IntelliJ IDEA is not installed at that location, then Studio reports an error.
If IDEA_HOME is not set
Studio runs the bundled IntelliJ.
Note: If you have an existing standalone IntelliJ IDEA installation, then the IDEA_HOME environment variable is likely to be already set. If so, when you run Studio, it automatically attempts to run the IntelliJ IDEA that is installed at that location. If that is not a compatible version of IntelliJ IDEA, then Studio reports an error. To have Studio run the bundled IntelliJ IDEA instead, unset IDEA_HOME.

Procedure

  1. Set the environment variable IDEA_HOME to the path of your IntelliJ IDEA installation directory.
    For example: C:\Program Files\JetBrains\IntelliJ IDEA 2019.3.5
  2. Run Guidewire Studio.
  3. If running with IntelliJ IDEA Ultimate Edition, enter your license information when prompted.

Set properties in the bundled IntelliJ IDEA

In the IntelliJ IDEA that is bundled with Studio, you must use a special procedure to set IntelliJ IDEA properties.

About this task

In the standalone IntelliJ IDEA application, you can set various properties by editing the idea.properties file. In IntelliJ IDEA bundled with Guidewire Studio, you cannot edit idea.properties directly. Instead, do the following:

Procedure

  1. Edit the file PolicyCenter/modules/script/gw-build.gradle.
  2. Locate the studio section:
    studio {
    ...
    }
  3. Within this section, set any properties that are valid in the idea.properties file by adding a statement in the following format:
    ideaProperties["property_name"] = "property_value"
    For example, to disable the IntelliJ IDEA cycle buffer, set the following:
    ideaProperties["idea.cycle.buffer.size"] = "disabled"
    Note: Do not modify other sections of the gw-build.gradle file.
  4. Restart Studio.