ehab
ehab

Reputation: 721

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

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.

Upvotes: 72

Views: 22374

Answers (8)

frozenKow
frozenKow

Reputation: 71

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

Upvotes: 7

Compito
Compito

Reputation: 941

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

Upvotes: 0

Lankesh Zade
Lankesh Zade

Reputation: 103

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

Upvotes: 4

azibit
azibit

Reputation: 59

I think you should try: Control + W

Command + W on MAC

Upvotes: -6

Mehdi Karamosly
Mehdi Karamosly

Reputation: 5438

Navigate back :(ALT+LEFT)

Navigate forward :(ALT+RIGHT)

Upvotes: 27

BillRobertson42
BillRobertson42

Reputation: 12883

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

Upvotes: 31

Chris
Chris

Reputation: 891

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

Upvotes: 89

user330315
user330315

Reputation:

I think you are looking for Alt-K

In the menu this is Navigate --> Back

Upvotes: 0

Related Questions