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

前端 未结 15 553
忘了有多久
忘了有多久 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:27

    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.

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

    Use Esc and F12 to switch between editor and the recently used window. That is what I usually do quickly because I have python console as the recently used window.

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

    I'm on PyCharm 2018.3.2 Community Edition using Win7 and I am able to switch to the code editor by pressing ESC and to the Python Console but pressing F12

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

    Press ⌃⇥ and navigate between files opened in the editor, and tool windows. This is called the Switcher.

    Reference:

    • https://www.jetbrains.com/help/pycharm/navigating-between-files-and-tool-windows.html
    • https://www.jetbrains.com/help/pycharm/navigation-between-ide-components.html
    0 讨论(0)
  • 2021-01-31 02:36

    Press Ctrl + TAB then release only TAB and press P to open Python Console directly. This method is similar to other answers, but let you to avoid walking through other options.

    And then SHIFT+ ESC to close this console.

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

    Updated answer for PyCharm 2020:

    After trying them none of the previous answers seem to still apply so here is how to do it in PyCharm 2020.

    To get into the python console where you can actually type commands (not just select the window) you have to rebind "Python or Debug Console" under Tools in the Keymap section of the settings (open with ctrl+alt+s)

    Getting back to the editor is Escape by default but can be changed by rebinding "Focus Editor" under the Editor Actions folder.

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