How does clion auto generate configurations


Here's a project with multiple build targets, and I deleted the individual run configurations because of some issues. But I reload the project also did not automatically generate configuration, how to make it automatically generated again?



CLion will not create a new default configuration if the same configuration has already been created, as in your case.

If you want CLion to regenerate run/debug configurations for you, you'll need to close the project (File | Close Project), remove the .idea subdirectory from the project directory, and open the project in CLion again. Please note that removing the .idea subdirectory will delete all the project settings.