In general, I\'d like to know the keyboard shortcut for navigating to multiple sections like the project structure, editor, console. I\'m using eclipse keymap configuration in p
From my understanding the keyboard shortcuts you are looking for are: Ctrl+0 = select shell Ctrl+9 = select editor These are default keyboard shortcuts for python.
Summarizing the answers I found:
Best:
- Bind "Python Console" (preference -> Keymap -> MainMenue.Tools "Python Console" to a keyboard shortcut. (e.g Alt-P). Then navigate to console via shortcut and back to editor via ESC.
Alternatives:
- Ctrl+shift+tab opens a menu to navigate to alternative Views, pressing "P" navigates to python console. ESC brings you back.
- Manually Clicking on python console and pressing ESC brings you back to editor. Alt+F12 navigates you to "previous" view.
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.
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
Bind "Python Console" (preference -> Keymap -> MainMenue.Tools "Python Console" to a keyboard shortcut. (e.g Alt-P). Then navigate to console via shortcut and back to editor via ESC
As you yourself said this is the best answer to switch to the "Python Console", not to the "Terminal", not to the Run window.
You may consider selecting this as the best answer...
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.