Reputation: 10877
Intellij will create a greyed-out run configuration every time I execute an unsaved run operation from some menu, be that run a unit test, run a maven build, or some other execution from a menu item (there are a lot of ways to get a temporary run configuration).
These unsaved configurations are automatically switched to. Running anything changes the run configuration dropdown box at the top of the IDE, but I never asked for this behavior.
Upvotes: 4
Views: 2487
Reputation: 402345
2021.1 version no longer has this setting, issue reported.
As a workaround you can close the project and edit .idea/workspace.xml
file manually.
Under <component name="PropertiesComponent">
node add/edit the following:
<property name="recentsLimit" value="0" />
For 2020.3.x and earlier versions:
Run/Debug Configurations | Templates | Temporary configurations limit: 0.
Upvotes: 5