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 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. If necessary, you can increase this limit in Settings/Preferences | Advanced Settings | IDE | Temporary Run/Debug configurations limit. The older ones are automatically deleted when new ones are added. The maximum number of temporary configurations is 5. 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. Run/debug configurations can be created as: If the Navigation bar is visible ( View | Appearance | Navigation Bar), you can access all available run/debug configurations from the selector on the toolbar. However, you can edit default values of parameters in each template to streamline the creation of new configurations. The list of available templates is predefined in the installation and can only be extended via plugins. When you create a new configuration for a specific kind of executable context, you create it from one of the dedicated configuration templates, which implement the startup logic, define the list of parameters and their default values. 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.