Andrea Bergonzo
Andrea Bergonzo

Reputation: 5160

IntelliJ grayed out Run Configuration

Using IntelliJ I have some Run Configurations that are grayed out.

I can still run them but I can't find why they are grayed out.

enter image description here

Upvotes: 21

Views: 11560

Answers (2)

DessinAteur
DessinAteur

Reputation: 11

To fix this:

  • Go to your project directory
  • Select a folder -> New -> Java Class -> Filename.java
  • Go to add configuration
  • Fill these fields like in the image:

enter image description here

Upvotes: -2

phaze0
phaze0

Reputation: 2008

A dimmed run configuration simply means it hasn't been saved. Technically called "temporary run configurations" by the IntelliJ manual:

Temporary configurations are marked with semi-transparent icons and are managed same way as the permanent configurations. By default, 5 temporary configurations are allowed per project. You can change this limit via the Edit Configurations dialog.

Saving (which makes the config permanent) can be done in either the "Run/Debug Configurations" menu (visible only when selected), or in the config selection dropdown in the general UI:

save locations

After saving, the configuration will move up to group with the reset of the saved configurations and will no longer be dimmed. As far as I can tell, you can have as many saved configs that you want.

Upvotes: 39

Related Questions