Type Code in Left Pane, Run It in Right Pane

I want to setup my IDE so that I type code in the left pane and then run it using Run in the right pane.

The problem is Run. I can either use the drop down menu or a keyboard shortcut, but I cannot select the Run green arrow GUI element as it "remembers" the prior code that was run. Plus, there are multiple Run shortcuts with two running the same code (Run\SHIFT+F10 and Re-Run\SHIFT+F5, while the third runs the code that I want to run (SHIFT+ALT+F10).

On my keyboard I have to do finger acrobatics because all of the F keys are double and triple function. So I have to add additional key presses to use F keys.

All I want to do is select the Run arrow and then it will run code that I have typed in the left.

The current design is overly convoluted and makes absolutely no sense whatsoever.

Here is a short vid: https://mega.nz/#!5U5hBICL!wgc4I4lvGdR10sAkBYNKLHPNKWUhtHJWbpUogEQEY0A

1 comment

This is by design. PyCharm does not "remember" the last code that you run, it's just using the last run configuration that you've configured, either automatically or manually. If you're not familiar with the concept of run configurations, you can do so here: https://www.jetbrains.com/help/pycharm/run-debug-configuration.html

In your case, it seems that you want PyCharm to automatically change the run configuration based on the currently active file in the editor. While PyCharm can't do that, you can certainly submit this as a feature request to our issue tracker (https://youtrack.jetbrains.com/issues/PY).


Please sign in to leave a comment.