NetBeans - shortcut for returning to previous position after invoking 'Go to Declaration'
JavaNetbeansKeyboard ShortcutsJava Problem Overview
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.
Java Solutions
Solution 1 - Java
Tested, for the 7.1.1 version, it is ALT+LEFT.
Solution 2 - Java
Another useful shortcut is ctrl-q
which takes you to the last edit point.
Solution 3 - Java
Navigate back :(ALT+LEFT)
Navigate forward :(ALT+RIGHT)
Solution 4 - Java
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
Solution 5 - Java
For El Capitan I was not able to figure this out.
So instead I applied my own keybinding.
Go to Netbeans -> preferences -> keymap
Search for "back" and add your own keybinding.
Cheers :)
Solution 6 - Java
I think you are looking for Alt-K
In the menu this is Navigate --> Back
Solution 7 - Java
Tested for Netbeans 8.2 on MAC, it is ctrl+B.
Solution 8 - Java
I think you should try: Control + W
Command + W on MAC