IntelliJ IDEA 2019.2 Help

Running Applications

IntelliJ IDEA enables running entire applications as well as classes with the main() method.

IntelliJ IDEA makes use of the settings defined in a Run/Debug Configuration. All the run configurations that exist in a project, are available in the Select Run/Debug Configuration list.

runConfigMenu

If you want to see the list of all currently running applications, select Run | Show Running List from the main menu. Refer to the Viewing Running Processes section for details.

Note that after you've started a run session, the icons toolwindows toolWindowRun svg icon that marks the Run tool window and in the Run/Debug Configuration Selector toggles to active run icon to indicate that the run process is active.

Run an application

  • In the left gutter, click the icon Run icon, and choose the desired command.

  • On the main toolbar, select the desired run configuration, and do one of the following:

    • Select Run | Run 'selected configuration' from the main menu.

    • Click icons toolwindows toolWindowRun svg.

    • Press Shift+F10.

  • Press Shift+Alt+F10, select the desired run configuration from the list, and press Enter.

    ij altShiftF10

    From this popup menu you also can:

    • Invoke the Edit Configuration dialog.

    • Edit the selected configuration before launch F4.

    • Instantly delete a configuration Delete.

    • Switch from run to debug and vice versa (hold Shift).

    • Access a previously selected configuration 1.

    • Access context-dependent configuration (2 or 3).

    • If you want to see the list of all currently running applications, select Run | Show Running List from the main menu. Refer to the Viewing Running Processes section for details.

Running a class with main() method

  • Open the class in the editor and do one of the following:
    • In the left gutter, click the icon Run icon, and choose the desired command.

    • Choose Run <method name > from the context menu

    • Press Ctrl+Shift+F10

  • Select the class in the Project tool window and choose Run <method name > from the context menu of the selection.

Last modified: 28 August 2019

See Also