- On the main menu, choose .
- If your project consists of two modules or more, choose the module to use the classpath of:
The Groovy console starts in a separate tab of the Run tool window:
- Type code in the console after the prompt character, or just paste from the editor tab.
Note that coding assistance is available, as you type (code completion, intention action, undo/redo):
- Click , or press Ctrl+EnterCtrl+Enter to execute the entered code.
- To start a new line, press EnterEnter.
- Use up and down arrow keys to navigate through the history of commands. Depth of the history is defined by the Console commands history size in the Editor settings.
- Use the basic and advanced editor shortcuts. In particular, you can jump to declaration of a symbol, if you place the caret at the symbol name, and press Ctrl+BCtrl+B. Alternatively, keep the CtrlControl key pressed, and hover your mouse pointer over the reference to a symbol. So doing, brief information appears at the tooltip, and the reference turns to a hyperlink, which allows you to jump to the declaration in the source code.