NetBeans - shortcut for returning to previous position after invoking 'Go to Declaration'

JavaNetbeansKeyboard Shortcuts

Java 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

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionehabView Question on Stackoverflow
Solution 1 - JavaChrisView Answer on Stackoverflow
Solution 2 - JavaBillView Answer on Stackoverflow
Solution 3 - JavaMehdi KaramoslyView Answer on Stackoverflow
Solution 4 - JavafrozenKowView Answer on Stackoverflow
Solution 5 - JavaLankesh ZadeView Answer on Stackoverflow
Solution 6 - Javaa_horse_with_no_nameView Answer on Stackoverflow
Solution 7 - JavaCompitoView Answer on Stackoverflow
Solution 8 - JavaazibitView Answer on Stackoverflow