IntelliJ IDEA 2020.1 Help

Run applications

You can run applications right from IntelliJ IDEA if you have an SDK set up for your project/ module.

Quick way

If you are not going to pass any parameters to your program, and your program does not require any specific actions to be performed before start, you can run it right from the editor.

  • Click icons actions execute in the gutter near the class declaration and select Run.

    run quick 1

Customizable way

If you are going to pass parameters to your program, add VM options (for example, to allow remote debugging), or otherwise customize the startup of your program, use a run/debug configuration.

  1. Create a run/debug configuration.

  2. On the main toolbar, select the run/debug configuration you are going to use.

    run rc 1
  3. Click The Run button or press Shift+F10.

When the application starts, you can view its output in the Run tool window. Every run/debug configuration creates a separate tab when you run it.

A tab in the Run tool window

To learn more about tool windows and how to manage them, see the Tool windows topic.

Re-run applications

  • On the toolbar of the Run tool window, click the Rerun button or press Shift+F10

    rerun button

Stop and pause applications

When you stop a program, its process is interrupted and exits immediately. When you pause a program, it continues running in the background, but its output is suspended.

Stop a program

  • In the Run tool window, click the Stop button on the toolbar. Alternatively, press Ctrl+F2 and select the process to stop.

Pause a program

  • Right-click in the Run tool window and select Pause Output from the context menu. Use the same toggle to resume the program.

    pause output

Show running processes

You can view the list of all active run or debug sessions and navigate between them.

  • From the main menu, select Run | Show Running List. In the top-right corner of the editor, IntelliJ IDEA shows a list with all active applications.

    A list of running applications
Last modified: 25 May 2020