This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 240562 - Keyboard shortcut to execute Find Usages
Summary: Keyboard shortcut to execute Find Usages
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal with 2 votes (vote)
Assignee: Ralph Ruijs
Depends on:
Reported: 2014-01-16 19:53 UTC by mclaborn
Modified: 2014-02-05 07:37 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description mclaborn 2014-01-16 19:53:40 UTC
Product Version = NetBeans IDE 7.4 (Build 201310111528)
Operating System = Linux version 3.2.0-58-generic running on amd64
Java; VM; Vendor = 1.7.0_45
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.45-b08

Please provide the ability to execute the Find Usages function, not just to display the dialog.  This is a function that I perform many times a day, and 90% of the time, I execute the Find Usages function with the default parameters that are selected in the dialog.  Having a shortcut to do this would save a considerable amount of time.

1) Maybe a simple shortcut to execute Find Usages with the default parameters
2) Maybe a macro command that could accept various parameters for the Find Usages function so that there could be separate shortcuts by type of search, for example one shortcut to limit scope to current project, and another for all open projects.
Comment 1 mclaborn 2014-01-16 19:55:32 UTC
FYI: here is a thread from the mailing list discussing this.
I know that there is a keyboard shortcut to bring up the "Find Usages" dialog.  What I'm looking for is a marco or something that will actually execute the "Find Usages" function based on the selected identifier - the equivalent of opening the dialog, selecting the various parameters and clicking the Find button.

I looked through the macro keywords and didn't see anything about find usages.

Is this possible? 


Could you explain more what you're trying to do?  Because I can't actually get NetBeans 7.4 to do anything *except* look for the selected item, or class the cursor is in.

You're using Alt-F7, right?  What actually comes up for you if you have a method name or type selected when you press that?  For me it comes up with that type or member ready to go, although I don't see a way to change that (which might be handy). 


The dialog comes up with the correct parameters and identifier all filled in.  What I want is a way to shortcut so that the dialog doesn't come up, and either executes with the default scope, etc or allows the [marco] to change those and then executes the find.  It is the display, filling out and submission of the dialog that I want to eliminate with a shortcut.

I am doing a LARGE refactoring project, and I am repeating that Find Usages dialog hundreds of times.