<html><head><link rel="canonical" href="https://www.jetbrains.com/help/idea/launching-groovy-interaction-console.html.md/" data-react-helmet="true"/></head><body># Groovy Interactive Console

&gt; **TL;DR**
&gt; Required plugin: Groovy (bundled)

You can open an interactive Groovy console in any project, including a Java one, and use the console as a temporary file to write and evaluate your code.

If dependencies in your project contain a Groovy library, then the specified Groovy library is used to launch the Groovy console. If the dependencies do not contain a Groovy library, then the bundled Groovy library will be used.

&gt; **Note:**
&gt; The Groovy console becomes available if there is a Groovy library dependency in your project. So, ensure that your existing project has one or create a [new Groovy project](getting-started-with-groovy.html#create_groovy_project).

Procedure:

1. In the main menu, go to `Tools | Groovy Console`.

2. If you have more than one module in your project, click the project's name on the console toolbar and select a module from the list to change a classpath for the console.

![Groovy_Module_Console.png](https://resources.jetbrains.com/help/img/idea/2026.2/Groovy_Module_Console.png)

The Groovy console starts in a separate tab in the editor.

![groovy_editor_console.png](https://resources.jetbrains.com/help/img/idea/2026.2/groovy_editor_console.png)

Procedure: Perform different actions inside the Groovy console

* You can enter code, the coding assistance is available as you type, or paste code from a different file. Press `Ctrl+Enter` (Windows), `⌘ ⏎` (macOS), `⌘ ⏎` (IntelliJ IDEA Classic (macOS)), `⌘ ⏎` (macOS System Shortcuts), `Ctrl+Enter` (XWin), `Ctrl+Enter` (GNOME), `Ctrl+Enter` (KDE), `Ctrl+Enter` (Emacs), `Ctrl+Enter` (Sublime Text), `⌘ ⏎` (Sublime Text (macOS)), `Ctrl+Enter` (NetBeans), `Ctrl+Enter` (Visual Studio), `⌘ ⏎` (Visual Studio (macOS)), `Ctrl+Enter` (Eclipse), `⌘ ⏎` (Eclipse (macOS)) or click ![](https://resources.jetbrains.com/help/img/idea/2026.2/app.toolwindows.toolWindowRun.svg) to execute code and view the results in the Run tool window.

![Groovy console and Run tool window](https://resources.jetbrains.com/help/img/idea/2026.2/groovy_console_output.png)

* You can refer to a class from the Groovy console. Type the name of the class you need, select it and press `Ctrl+B` (Windows), `⌘ B` (macOS), `⌘ B` (IntelliJ IDEA Classic (macOS)), `⌘ B` (macOS System Shortcuts), `Ctrl+B` (XWin), `Ctrl+B` (GNOME), `Ctrl+B` (KDE), `Ctrl+Alt+G` (Emacs), `F12` (Sublime Text), `F12` (Sublime Text (macOS)), `Ctrl+B` (NetBeans), `F12` (Visual Studio), `F12` (Visual Studio (macOS)), `F3` (Eclipse), `F3` (Eclipse (macOS)) to jump to its declaration.

![Go to Declaration](https://resources.jetbrains.com/help/img/idea/2026.2/groovy_console_class_ref.animated.gif)

* If you have an import statement in your code, you can run a partial selection of code omitting the import statement. The Groovy console will include the omitted part during the execution.

![Include omitted part of code](https://resources.jetbrains.com/help/img/idea/2026.2/groovy_console_include_omitted.animated.gif)

## See also

### Concepts

[General](settings-editor-general.html)

### Reference

[Interactive Groovy console](interactive-groovy-console.html)

</body></html>