IntelliJ IDEA中跳转到上一个视图位置(向后/向前导航)的键盘快捷键

本文翻译自: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 + LeftRight来切换工作区和/或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找到“ BackForward然后右键单击“ Add Keyboard Shortcut以设置其他和弦,来更改分配。

Alt Graph + Left and Alt Graph + Right works well for me (IDEA 13.1.4 on Ubuntu under IceWM). Alt Graph + LeftAlt 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 )+ +

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值