69

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.

TimD
  • 8,014
  • 2
  • 24
  • 34
ehab
  • 691
  • 1
  • 5
  • 3

8 Answers8

89

Tested, for the 7.1.1 version, it is ALT+LEFT.

Perception
  • 79,279
  • 19
  • 185
  • 195
Chris
  • 891
  • 6
  • 3
30

Another useful shortcut is ctrl-q which takes you to the last edit point.

BillRobertson42
  • 12,602
  • 4
  • 40
  • 57
26

Navigate back :(ALT+LEFT)

Navigate forward :(ALT+RIGHT)

Mehdi Karamosly
  • 5,388
  • 2
  • 32
  • 50
6

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

frozenKow
  • 61
  • 1
  • 4
2

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 :)

0

Tested for Netbeans 8.2 on MAC, it is ctrl+B.

Compito
  • 851
  • 5
  • 6
0

I think you are looking for Alt-K

In the menu this is Navigate --> Back

  • 3
    thank you yes it is from menu Navigate-> back in NetBeans 7 shortcut is (alt + left) – ehab Jun 20 '11 at 07:35
-6

I think you should try: Control + W

Command + W on MAC

azibit
  • 59
  • 1
  • 2