Implement `CMD+CLICK` on Symbol Declarations to Find Usages Instantly
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 935
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 17
Description
### Description
NetBeans currently provides a way to find usages of symbols using CTRL + F7. This method presents a dialog box that requires users to optionally modify the find parameters before clicking the "Find" button.
I propose the implementation of a CMD + CLICK feature that allows users to instantly view usages of a symbol (e.g., a method name) declaration without the need for an initial dialog box. This functionality would mimic the approach found in IntelliJ, where CMD + CLICK on a symbol opens a popup displaying the default results for usages immediately. Users would still have the option to change the find parameters after the initial results are loaded.
Additionally, the CTRL + F7 option loads all usages at once, requiring developers to wait for results to become available. The CMD + CLICK option should adopt a streaming style, presenting usages as they are discovered, thereby enhancing the overall user experience.
### Use case/motivation
Finding usages is one of the most frequently performed actions during coding, whether in the writing or refactoring phases. Instant feedback through a CMD + CLICK option will allow developers to make quicker, informed decisions, ultimately boosting productivity and streamlining workflow.
### Related issues
None identified.
### Are you willing to submit a pull request?
Yes
Contributor guide
Research direction
Start by reviewing NetBeans' existing CTRL + F7 find-usages flow and the requested IntelliJ-style CMD + CLICK behavior. Done means symbol declarations open usage results immediately, results stream as they are discovered, and find parameters remain adjustable afterward.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- developer-experience, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100