Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 837
ehab Avatar asked Jun 19 '11 15:06

ehab


People also ask

How do I enable shortcuts in NetBeans?

Editing and Refactoring Code in NetBeans To add a keyboard shortcut for a command: Choose Tools | Options and click the Keymap panel. In the Actions panel, navigate to a command that you want to change, and click Add. In the Add Shortcut dialog box, type in the key combination that you want to use and click OK.

Is NetBeans better than Vscode?

Visual Studio Code has a broader approval, being mentioned in 1104 company stacks & 2298 developers stacks; compared to NetBeans IDE, which is listed in 61 company stacks and 45 developer stacks.

How do I add a try catch in NetBeans?

In Netbeans, go to menu option Tools -> Options -> Editor -> Hints (Tab) -> Make Sure Language Java is selected -> in the tree select "Error Fixes" - "Surround with try-catch".


2 Answers

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

like image 66
Chris Avatar answered Sep 20 '22 11:09

Chris


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

like image 38
Bill Avatar answered Sep 19 '22 11:09

Bill