在 PyCharm 中切换项目和编辑器的快捷方式?

Shortcut to switch project and editor in PyCharm?(在 PyCharm 中切换项目和编辑器的快捷方式?)

本文介绍了在 PyCharm 中切换项目和编辑器的快捷方式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我经常需要编辑一些代码(在编辑器中),然后在项目结构中工作.我想使用键盘而不是鼠标在这两者之间切换.我怎样才能在 PyCharm 中做到这一点?

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 ?

推荐答案

在 https://www.jetbrains.com/pycharm/docs/PyCharm_ReferenceCard.pdf 你会发现 pdf 格式的 PyCharm 默认键盘映射.您也可以通过按 Shift 两次然后键入 keymap 并选择 Default Keymap Reference 从 PyCharm 访问它.在键盘映射中,您会看到以下两个条目:

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 返回上一个工具窗口
  • Esc 转到编辑器(从工具窗口)
  • F12 Go back to previous tool window
  • Esc Go to editor (from tool window)

因此,一旦您进入 Project 工具窗口(您可以使用 Alt+1 快捷方式打开该窗口),您可以通过以下方式切换到编辑器按 Esc,然后按 F12 返回 Project 窗口.

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.

上述返回上一个工具窗口的快捷方式在设置/键盘映射中称为跳转到上一个工具窗口.
上面描述的转到编辑器的快捷方式似乎没有出现在 Settings/Keymap 中,因此无法自定义.

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.

这篇关于在 PyCharm 中切换项目和编辑器的快捷方式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:在 PyCharm 中切换项目和编辑器的快捷方式?

基础教程推荐