本文翻译自:Keyboard shortcut for Jump to Previous View Location (Navigate back/forward) in IntelliJ IDEA
I know Ctrl + Shift + Backspace is used to go to the location of the last edit. 我知道Ctrl + Shift + Backspace用于转到上次编辑的位置。
But I want to jump to whichever location I was most recently at, not necessarily one where I edited anything. 但是我想跳到我最近所在的任何位置,而不必跳到我编辑任何内容的位置。
For example, if I jumped to a declaration using Ctrl + B , then I want to go back to where I was before jumping. 例如,如果我使用Ctrl + B跳转到声明,那么我想回到跳转之前的状态。
#1楼
参考:https://stackoom.com/question/VDsr/IntelliJ-IDEA中跳转到上一个视图位置-向后-向前导航-的键盘快捷键
#2楼
Q & A is built into Intellij ... 问答内置于Intellij ...
CTRL/CMD + SHIFT + A x 2 TYPE caret CTRL / CMD + SHIFT + A x 2 TYPE尖号
#3楼
The underlying problem is Ctrl + Alt + Left and Right are used by window managers to switch workspace and/or OEM utilities to change the screen orientation. 根本问题是窗口管理器使用Ctrl + Alt + Left和Right来切换工作区和/或OEM实用程序以更改屏幕方向。
You can change the assignments using File / Settings / Keymap
then Main Menu / Navigate
find Back
and Forward
and right click to Add Keyboard Shortcut
to set an alternative key chord. 您可以使用“ File / Settings / Keymap
然后在“ Main Menu / Navigate
找到“ Back
和Forward
然后右键单击“ Add Keyboard Shortcut
以设置其他和弦,来更改分配。
Alt Graph + Left and Alt Graph + Right works well for me (IDEA 13.1.4 on Ubuntu under IceWM). Alt Graph + Left和Alt Graph + Right对我来说很好(在IceWM下,Ubuntu上的IDEA 13.1.4)。
#4楼
CMD + [ -> Go Previous CMD + [ ->转到上一个
CMD + ] -> Go Next CMD + ] ->转到下一步
========== ==========
For OSX, cmd + [ and ] are the best choices to go back & forth, Since they are found so near to fingers, avoiding you wrist twisting a bit, one keypress lesser, ideal for users in vim mode. 对于OSX, cmd + [和]是最好的来回选择,因为它们离手指很近,避免了腕部扭动,因此减少了一点按键操作,非常适合vim模式的用户。
As the OP requested, this works well with cmd + B which facilitates jumping inside/to the method/variable definition and comes back immediately using cmd + [ . 根据OP的要求,此命令与cmd + B一起使用效果很好,这有助于跳转到方法内部/方法定义/变量定义中,并立即使用cmd + [返回 。 Give a try. 试一下。
#5楼
Like @itsneo said, I personally find ⌘ + [ and ] the most convenient ones on a mac. 就像@itsneo所说,我个人认为⌘ + [和]在Mac上是最方便的。 But I can understand if you come from Linux side of things. 但是我能理解您是否来自Linux方面。 Then you can use ⌘ + alt + ← or → . 然后,您可以使用⌘ + alt + ←或→ 。
#6楼
对于版本14。在Mac上,它是⌥ ( alt )+ ⌘ + ←