IntelliJ IDEA 2017.1 Help

Interactive Groovy Console

Tools | Groovy Console

Interactive Groovy console can be launched in any project.

Note that if dependencies in your project contain a Groovy library then the specified Groovy library will be used to launch the Groovy console. If the dependencies do not contain a Groovy library then the bundled Groovy library of the Groovy version 2.3.9 will be used.

Editor for Groovy Console

Use the editor for the interactive Groovy console to write and evaluate your code.

/help/img/idea/2017.1/run.pngClick this icon to run the code entered in the editor in the Groovy console. You can view the results in the run tool window for Groovy console.
/help/img/idea/2017.1/moduleFolder.pngClick this icon to see the module in which the Groovy console was launched. It might be helpful for multi-module projects.

Run Tool Window for Groovy Console

Use this tool window to view the results of the Groovy console execution.

ItemTooltip and ShortcutDescription
/help/img/idea/2017.1/stop.gif Stop
Click this button to stop the current process.

Clicking the button once invokes soft kill allowing the application to catch the SIGINT event and perform graceful termination (on Windows, the Ctrl+C event is emulated). After the button is clicked once, it is replaced with /help/img/idea/2017.1/icon_run_tool_window_kill.png indicating that subsequent click will lead to force termination of the application, e.g. on Unix SIGKILL is sent.

close.png Close
Click this button to close the selected tab of the Run tool window and terminate the current process.
/help/img/idea/2017.1/arrowUp.png /help/img/idea/2017.1/arrowDown.png Up/down the Stack Trace
Ctrl+Alt+Up Ctrl+Alt+Down
Click this button to navigate up or down in the stack trace and have the cursor jump to the corresponding location in the source code.
/help/img/idea/2017.1/icon_softWrap.png Use Soft WrapsClick this button to toggle the soft wrap mode of the output.
scrollToEnd.png Scroll to the endClick this button to navigate to the bottom of the stack trace and have the cursor jump to the corresponding location in the source code.
/help/img/idea/2017.1/print.png PrintClick this button to send the console text to the default printer.
/help/img/idea/2017.1/clear_all.png Clear AllClick this button to remove all text from the console. This function is also available on the context menu of the console.
/help/img/idea/2017.1/run.png Execute Groovy Code (Ctrl+Enter) Run code, entered in the console.
help Help
Use this icon or shortcut to open the corresponding help page.

See Also

Language and Framework-Specific Guidelines:

Last modified: 5 April 2017