Keyboard shortcut to switch between python console and the editor in pycharm
Solution 1:
In Pycharm 4, you can specify shortcuts with
File / Settings / Appearance and Behaviour / Keymap
You can create any shortcut you like, and bind it to the command "Python Console" (search for Console), which has no default keymapping. Be aware that it is possible to have multiple consoles open at the same time (for example if you open one in the debugging window) so this may not always behave as you expect it to.
You can toggle back to the last editor window by hitting escape.
Solution 2:
If you mean the "Run" window (which has a console in it) you can open it/switch to it with Alt + 4. See the screenshot for the two locations this is indicated.
As mentioned by vape, Esc should return you to your most recently used editor. Alternatively, pressing Alt + 4 again seems to return me to the first editor.
Solution 3:
Ctrl + TAB pops up the Switcher dialog. You can then either use repeated Ctrl+Tab to navigate to the window you want, or hit the corresponding number.
Solution 4:
To switch from Editor to Console: CTRL + SHIFT + TAB
To switch from Console to Editor: SHIFT + ESC
This works for me on Ubuntu 16.04
Solution 5:
Based on the title of the question the answer seem to be simply: Alt+F12.
This is true both for Eclipse bindings and the default.
It moves from the editor to the console/terminal and back when pressing it again. The only downside I see is that the terminal closes when moving back to the editor, I would like to keep it open and only move the focus.