Keyboard shortcut to switch between python console and the editor in pycharm

前端 未结 15 554
忘了有多久
忘了有多久 2021-01-31 01:53

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

相关标签:
15条回答
  • 2021-01-31 02:38

    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.

    0 讨论(0)
  • 2021-01-31 02:40

    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.

    0 讨论(0)
  • 2021-01-31 02:41

    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.

    0 讨论(0)
  • 2021-01-31 02:41

    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

    0 讨论(0)
  • 2021-01-31 02:42

    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...

    0 讨论(0)
  • 2021-01-31 02:43

    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.

    0 讨论(0)
提交回复
热议问题