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.
Asked
Active
Viewed 2.1k times
69
8 Answers
89
Tested, for the 7.1.1 version, it is ALT+LEFT.

Perception
- 79,279
- 19
- 185
- 195

Chris
- 891
- 6
- 3
-
What did you mean by LEFT? – Terry Li Jul 22 '13 at 02:08
-
2LEFT= LEFT ARROW KEY <- – MortalViews Aug 24 '13 at 20:09
-
2Navigate back (ALT+LEFT) Navigate forward(ALT+RIGHT) – Mehdi Karamosly Feb 04 '14 at 20:52
-
It's not possible to drag buttons for that into the toolbars, right!? – halloei Oct 17 '14 at 12:40
-
1Working on my Netbeans 8.2, Windows 7 – Cold_Class Jun 30 '17 at 15:49
30
Another useful shortcut is ctrl-q
which takes you to the last edit point.

BillRobertson42
- 12,602
- 4
- 40
- 57
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
-
Just to add, for me it worked in HighSierra (10.13) with Netbeans 8.2 :D – Isidro Serrano Pineda Aug 21 '19 at 19:53
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 :)

Lankesh Zade
- 83
- 9
0
I think you are looking for Alt-K
In the menu this is Navigate --> Back
-
3thank 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
-
2
-
It closes the current window but takes you back to the previous window where you are coming from – azibit Jan 17 '16 at 10:11
-
1cmd + w works for me (Mac) - no matter this is system shortcut for closing windows. – Arif Dewi May 11 '16 at 10:25