在PyCharm中,如何返回上一个位置? [英] In PyCharm, how to go back to last location?

查看:990
本文介绍了在PyCharm中,如何返回上一个位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的系统具有覆盖了pycharm的全局密钥映射. 这是原始问题:

我已经尝试了以下答案,但没有任何反应:

I've tried these answers, but nothing happened: Keyboard shortcut for Jump to Previous View Location (Navigate back/forward) in IntelliJ IDEA

例如:

  1. 我正在导航到功能主体,
  2. 将光标放在函数调用上,
  3. 单击 F12 (转到定义")
  4. 从新位置(函数的主体)开始,如何返回函数调用?
  1. I'm navigating to a function body,
  2. put the cursor on a function call,
  3. click F12 ("go to definition")
  4. from the new location (the function's body), how do I return to the function call?

我尝试过这些,但是他们什么也没做:

I've tried these, but they didn't do anything:

  • Ctrl + Shift +
  • Ctrl + Shift + F2 <-这是我的默认映射
  • Alt + Shift +
  • Ctrl + Shift + 退格
  • 不要在linux上尝试: Ctrl + Alt + backspace
  • Ctrl+Shift+Left
  • Ctrl+Shift+F2 <-- this is my default mapping
  • Alt+Shift+Left
  • Ctrl+Shift+backspace
  • don't try that on linux: Ctrl+Alt+backspace

还是 F12 (转到def")不够强大"以触发位置更改事件?

Or maybe F12 ("go to def") isn't "strong enough" to trigger a location-change event?

推荐答案

总而言之,它与PyCharm无关;

All in all, it has nothing with PyCharm;

在我的情况下,存在另一个程序的全局键组合,该程序组合了 Ctrl-Alt-Left

In my case, there was a global key combo of another program, that masked Ctrl-Alt-Left

我通过重新映射文件>设置>键盘映射>主菜单>导航>返回"来解决该问题.

I solve it by remapping "file > settings > keymap > main menu > navigate > back".

我选择了 Alt + ,直观地感觉就像Web浏览器的后退"行为.

I chose Alt+Left, which intuitively feels likes web browsers "back" behavior.

这篇关于在PyCharm中,如何返回上一个位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆