Create and save temporary run/debug configurations
Sometimes you might need to run or debug a script, an application, or a test without creating a dedicated run configuration. In this case, you can use the temporary run configuration provided by PyCharm.
A temporary configuration is created every time you run test classes or methods from the context menu or using the gutter icons or . The new configuration appears greyed out in the run/debug Configuration selector when the run or debug session is over.
A temporary run/debug configuration is added to the list of available configurations and works same way as the permanent run/debug configuration. You can change its settings using the Run/Debug Configuration dialog and optionally save it as permanent.
Create a temporary run/debug configuration
Select the desired script in the Project tool window or open it in the editor.
Do one of the following:
Right-click code in the editor and selector .
Save a temporary run/debug configuration
In the Run/Debug Configuration selector, choose .
In the Edit Configurations dialog, select the temporary configuration in the list, and click .
From the context menu of the editor or Project tool window, choose .
Once you save a temporary configuration it becomes permanent and it is recorded in a separate XML file in the <project directory>/.idea/ directory. For example, MyProject/.idea/Car.xml.