- Select the desired class with the main() method in the Project view or open it in the editor.
- On the context menu of the selection, choose Ctrl+Shift+F10Command Shift F10.
IntelliJ IDEA creates a temporary configuration, which appears in the Select Run/Debug Configuration drop-down list on the main toolbar when the run or debug session is over.
or . Alternatively, press