In PyCharm, how to go back to last location?(在 PyCharm 中,如何返回上一个位置?)
问题描述
我的系统有覆盖 PyCharm 的全局键映射.这是原始问题:
我尝试了这些答案,但什么也没发生:IntelliJ IDEA 中跳转到上一个视图位置(向后/向前导航)的键盘快捷键
I've tried these answers, but nothing happened: Keyboard shortcut for Jump to Previous View Location (Navigate back/forward) in IntelliJ IDEA
例如:
- 我正在导航到一个函数体,
- 将光标放在函数调用上,
- 单击 F12(转到定义")
- 从新位置(函数体),我如何返回到函数调用?
我已经尝试过这些,但它们没有做任何事情:
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+Left,直观上感觉就像是网页浏览器后退"的行为.
I chose Alt+Left, which intuitively feels likes web browsers "back" behavior.
这篇关于在 PyCharm 中,如何返回上一个位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:在 PyCharm 中,如何返回上一个位置?


- 计算测试数量的Python单元测试 2022-01-01
- YouTube API v3 返回截断的观看记录 2022-01-01
- CTR 中的 AES 如何用于 Python 和 PyCrypto? 2022-01-01
- 使用公司代理使Python3.x Slack(松弛客户端) 2022-01-01
- ";find_element_by_name(';name';)";和&QOOT;FIND_ELEMENT(BY NAME,';NAME';)";之间有什么区别? 2022-01-01
- 检查具有纬度和经度的地理点是否在 shapefile 中 2022-01-01
- 我如何卸载 PyTorch? 2022-01-01
- 使用 Cython 将 Python 链接到共享库 2022-01-01
- 如何使用PYSPARK从Spark获得批次行 2022-01-01
- 我如何透明地重定向一个Python导入? 2022-01-01