Amount of Configurations in PyCharm Professional is capped. Any way to raise their amount?

Viewed 81

I am using PyCharm Pro and have a limited amount of saved configurations. I am using a large amounts of scripts daily (easily over 30) and I only see a capped amount in the configurations. If I add another configuration I usually pop out an older configuration.

Any way to increase the amount of saved configurations in PyCharm? Can't seem to find an option for that in configurations.

2 Answers

You probably mean "Temporary" configurations because the "Permanent" configurations aren't limited in number. You can distinguish them by the opaqueness of the icons.

Run/debug configurations - PyCharm 2021

Permanent configurations have opaque icons while the icons of temporary configurations are semi-transparent.

Since PyCharm 2021.2 the default number of maximum "Temporary Configurations" is again configurable

Run/debug configurations - PyCharm 2021.2

Temporary — created every time you run or debug functions or tests.

The maximum number of temporary configurations is 5. The older ones are automatically deleted when new ones are added. If necessary, you can increase this limit in Settings/Preferences | Advanced Settings | IDE | Temporary Run/Debug configurations limit.

In PyCharm 2021.1 the default number of maximum "Temporary Configurations" is limited to 5.

Run/debug configurations - PyCharm 2021.1

The maximum number of temporary configurations is 5. The older ones are automatically deleted when new ones are added.

This default value is configurable in PyCharm 2020.1 through 2020.3

Run/debug configurations - PyCharm 2020

By default, five temporary run/debug configurations are allowed per project, so when you create the sixth configuration, the one created first is removed, and so on. To change this limit, use the Temporary configurations limit field in the Templates page of the Run/debug configurations dialog.

However, by using "Permanent" configurations there isn't any limit. Here's a screenshot showing over 30 permanent run configurations.

enter image description here

I am a PyCharm user myself, but in my view relying on the IDE to recall configurations is not the best way to manage them, especially when you have so many. Why not write a script in the root directory of your project that can call whichever configuration is needed when it is needed?

My suggestion would be to use a library like baker or another CLI menu library to structure this. You use decorators to identify functions as baker commands which are then executed.

That way you can call your scripts without even opening PyCharm, but rather from the command line.

Related