In the Run/Debug Configuration dialog, click on the toolbar or press Alt+Insert. Alternatively, press Alt+Shift+F10, then 0. For other templates, refer to List of run/debug configurations.įrom the main menu, select Run | Edit Configurations. This is the most common template for Java, which corresponds to compiling your program with javac and then running it with java. This procedure describes the steps to create a run/debug configuration using the Application template. Create a run/debug configuration from a template The list of available templates varies depending on the installed and enabled plugins. IntelliJ IDEA provides run/debug configuration templates for different languages, tools, and frameworks. Select a temporary configuration in the run/debug configuration switcher and then click Save Configuration.Īlternatively, select a temporary configuration in the Run/debug configurations dialog and click on the toolbar. Save a temporary configuration as permanent For the detailed description of the template, see List of run/debug configurations.
Set up the run/debug configuration parameters. IntelliJ IDEA creates a permanent run/debug configuration of the corresponding type. Place the caret at the declaration of an executable method or class (for example a class with the main() method or a test suite) and press Alt+Enter. Save a temporary run/debug configuration as permanent.Ĭreate from a template or copy an existing configuration.Ĭreate a permanent run/debug configuration from an executable method or class When there is an executable class or method, you can create a permanent run/debug configuration right from the editor. IntelliJ IDEA provides the following ways to create a permanent run/debug configuration: Create permanent run/debug configurations If necessary, you can increase this limit in Settings/Preferences | Advanced Settings | IDE | Temporary configurations limit. The older ones are automatically deleted when new ones are added. The maximum number of temporary configurations is 5. Permanent configurations have opaque icons while the icons of temporary configurations are semi-transparent. So whenever you run/debug or test your code, IntelliJ IDEA either uses an existing permanent run/debug configuration or creates a new temporary one. Permanent configurations remain as part of your project until you remove them. Permanent - created explicitly from a template or by saving a temporary configuration. It provides the bare minimum that allows a class with the main() method to run. Temporary - created every time you are running a class that does not have a permanent configuration. There are two types of run/debug configurations: Each configuration is a named set of startup properties that define what to execute and what parameters and environment should be used. IntelliJ IDEA uses run/debug configurations to run, debug, and test your code.