Ctrl+Enter executes current file in console instead of split line
Not sure when exactly this started to happen but all of sudden Ctrl+Enter executes the file currently open in a new instance of a python console. I'm pretty sure that I previously used this shortcut to split line. Was there some setting introduced that I missed? How can I recover the expected behavior? (I'm using latest PyCharm 2024.1.4 with “old” UI)
Please sign in to leave a comment.
I'm having the same issue! I'm positively sure I used Ctrl+Enter to split lines in python console and now what it does is try to execute the statement in the current line. That's annoying! How can I get the old behavior back?! I tried meddling with Keymap in the settings but to no avail… I'm using PyCharm 2023.3.4 (Professional Edition). Thank you.
You can remove the run shortcuts from the Keymap menu.
On the small search Icon on the right you can search by shortcut. Click that and press Ctrl+Enter
It will then show you all items with the shortcut assigned to it. You can then remove or change the shortcut on all of the Run Items.
I think there is a bug related to the context for the shortcuts that's not working and why it suddenly changed behavior.
Hope this helps!