问题
I often need to edit some code (in editor) and then work in the project structure. I would like switch between these two using the keyboard instead the mouse. How can I do that in PyCharm ?
回答1:
At https://www.jetbrains.com/pycharm/docs/PyCharm_ReferenceCard.pdf you'll find PyCharm default keymap in the pdf format. You can also access it from PyCharm by pressing Shift twice and then typing keymap
and choosing Default Keymap Reference. In the keymap you see the following two entries:
- F12 Go back to previous tool window
- Esc Go to editor (from tool window)
So once you are in the Project tool window (which you can open with Alt+1 shortcut) you can switch to editor by pressing Esc and back to the Project window by pressing F12.
The shortcut described above as Go back to previous tool window is called Jump to Last Tool Window in the Settings/Keymap.
The shortcut descried above as Go to editor seems to be absent from Settings/Keymap so can't be customized.
来源:https://stackoverflow.com/questions/27463732/shortcut-to-switch-project-and-editor-in-pycharm