IntelliJ IDEA 2017.1 Help

Creating and Saving Temporary Run/Debug Configurations

On this page:


Sometimes you might need to run or debug a certain class with the main() method , without creating a dedicated run configuration. In this case, IntelliJ IDEA provides a temporary run configuration.

Temporary run/debug configuration is added to the list of available configurations and works same way as the permanent run/debug configurations. You can change its settings using the Run/Debug Configuration dialog box and optionally save it as permanent.

Creating a temporary run/debug configuration

To create a temporary run/debug configuration

  1. Select the desired class with the main() method in the Project view or open it in the editor.
  2. Do one pf the following:
    • On the context menu, choose Run <name> or Debug <name>.
    • Press Ctrl+Shift+F10.

    IntelliJ IDEA creates a temporary configuration, which appears in the Run/Debug Configuration selector, when the run or debug session is over.

Saving a temporary run/debug configuration

To save a temporary configuration, do one of the following

  • In the Run/Debug Configuration selector, choose Save <configuration name>.
  • In the Run/Debug Configuration dialog box, click /help/img/idea/2017.1/io.png.
  • On the context menu of the editor or Project view, choose Save <configuration name>.

See Also

Last modified: 18 July 2017