java NetBeans - 调用“转到声明”后返回到先前位置的快捷方式
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6403375/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
NetBeans - shortcut for returning to previous position after invoking 'Go to Declaration'
提问by ehab
In Netbeans I want to be able too return back to my previous position after selecting Go to Declaration
(ctrl + click
on variable). Similar to the option in Microsoft Visual Studio .Net IDE when I click (ctrl + -
) - it will return to the previous position I was in.
在 Netbeans 中,我希望在选择Go to Declaration
( ctrl + click
on 变量)后也能够回到我以前的位置。与单击 ( ctrl + -
)时 Microsoft Visual Studio .Net IDE 中的选项类似- 它将返回到我所在的先前位置。
回答by Chris
Tested, for the 7.1.1 version, it is ALT+LEFT.
经测试,对于7.1.1版本,是ALT+LEFT。
回答by Bill
Another useful shortcut is ctrl-q
which takes you to the last edit point.
另一个有用的快捷方式是ctrl-q
将您带到最后一个编辑点。
回答by Mehdi Karamosly
Navigate back :(ALT+LEFT)
导航回 : (ALT+LEFT)
Navigate forward :(ALT+RIGHT)
向前导航 : (ALT+RIGHT)
回答by user2747443
For El Capitan one needs to go to the System Preferences -> Keyboard -> Shortcuts and under "Mission Control" disable the ctrl-arrow sequences and then it works
对于 El Capitan,需要转到系统偏好设置 -> 键盘 -> 快捷方式,然后在“任务控制”下禁用 ctrl-箭头序列,然后它就可以工作了
回答by Lankesh Zade
For El CapitanI was not able to figure this out.
对于El Capitan,我无法弄清楚这一点。
So instead I applied my own keybinding.
所以相反,我应用了我自己的键绑定。
Go to Netbeans -> preferences -> keymap
转到Netbeans -> 首选项 -> 键盘映射
Search for "back" and add your own keybinding.
搜索“back”并添加您自己的键绑定。
Cheers :)
干杯:)
回答by Compito
Tested for Netbeans 8.2 on MAC, it is ctrl+B.
在 MAC 上测试 Netbeans 8.2,它是 ctrl+B。
回答by a_horse_with_no_name
I think you are looking for Alt-K
我想你正在寻找 Alt-K
In the menu this is Navigate --> Back
在菜单中这是 Navigate --> Back
回答by azibit
I think you should try: Control + W
我认为你应该尝试: Control + W
Command + Won MAC
MAC 上的Command + W