在PyCharm中,如何返回上一个位置? [英] In PyCharm, how to go back to last location?
问题描述
我的系统具有覆盖了pycharm的全局密钥映射. 这是原始问题:
I've tried these answers, but nothing happened: Keyboard shortcut for Jump to Previous View Location (Navigate back/forward) in IntelliJ IDEA
例如:
- 我正在导航到功能主体,
- 将光标放在函数调用上,
- 单击 F12 (转到定义")
- 从新位置(函数的主体)开始,如何返回函数调用?
- I'm navigating to a function body,
- put the cursor on a function call,
- click F12 ("go to definition")
- 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屋!