现在,每次我启动一个新的 Python 文件时,我都必须在 PyCharm 中进行新的运行配置才能运行它。有没有一种方法可以让默认配置只运行您正在查看的任何文件?还是我只需要为每个文件创建一个新配置?
最佳答案
只需在打开模块的编辑器中右键单击或按 Ctrl + Shift +F10,请参阅 Run without any previous configuring .
IDE 将使用 File
中设置的项目为您创建一个临时运行配置。 >
Settings
>
Project
>
Python Interpreter
, 请参阅 Changing the Python interpreter in the project settings .
关于python - 如何在 PyCharm 中创建运行当前文件的运行配置?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66193226/