alvion alvion - 18 days ago 7
Python Question

How can I run the current file in PyCharm

How can I run the current file in PyCharm? I would like a single hotkey that will execute the current file (whether normal file, scratch file, or scratch buffer) using the project default python interpreter. I would like to NOT have to create a custom run configuration, but just launch with the default Python configuration. Is such a thing possible?

Answer

As it turns out, the action I was seeking is "Run in Context" (or "Debug in Context" for debugging). The default key binding is ctrl+shift+f10, as Ev. Kounis pointed out, although you can bind it to any key you like.