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 268494 - Feature: Goto Declaration by typing function name instead of clicking
Summary: Feature: Goto Declaration by typing function name instead of clicking
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Navigation (show other bugs)
Version: Dev
Hardware: All All
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-13 02:09 UTC by bronius
Modified: 2016-10-13 02:09 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bronius 2016-10-13 02:09:02 UTC
Currently:
The Goto Declaration function requires that the cursor be on a function or variable implementation. The user can hit ctrl/cmd + B or ctrl/cmd + click or right-click and select Go to Declaration.

Issue:
There is no apparent way to arbitrarily jump to the declaration of any function or variable by typing its name.

Workaround:
On a blank line, user can type a valid line of code including an invocation of the function or variable name and then go back and cmd-B or click etc to go to the declaration.

Proposed Solution:
A scope-wide search text field could be presented which allows the user to type the function or variable name to jump to it without temporarily actually altering any code. To invoke this search, with cursor in an empty line or any non-variable, non-function space, user could right-click and select Go To Declaration, hit cmd-B, etc, and be prompted with a text field.