I have used IntelliJ for many projects and recently, when I try to find usages of an overridden method by pressing ALT+F7, it usually brings up a prompt asking if I want to search for the base method instead.
It is no longer doing that.
Is there an option to re-enable that back? I don't remember if there were any recent plugins or updates installed that disabled this.
In the Settings/Preferences dialog ( Ctrl+Alt+S ), go to Editor | Inlay Hints | Java. From the available options, select Code Vision and enable the Show hints for: and the Usages checkboxes. Click OK to save the changes. When you return to your code in the editor, IntelliJ IDEA will show you the usages of Java symbols.
Press ⌥F7 (macOS), or Alt+F7 (Windows/Linux), to bring up the Find Usages tool window. You can search a single file, your whole project, or customise the scope. You can also configure the color of the usages highlighting or disable the automatic highlighting of usages.
By default, IntelliJ IDEA shows all classes, methods, and other elements of the current file. To toggle the elements you want to show, click the corresponding buttons on the Structure tool window toolbar. to show class fields. to have protected class members shown in the tree.
I found the problem. There was a plugin called Gauge that was installed and a month ago, they released a version that "enhanced find usages functionality". I disabled that plugin, restarted IntelliJ and I have my find usages back to normal! I don't remember installing this plugin and I don't think I need it or use it. It is possibly a plugin that came with IntelliJ. Nevertheless, that was the cause of the issue.
Using Ctrl+Shift+Alt+F7 should show the prompt.
See: https://www.jetbrains.com/help/idea/find-usages-method-options.html
When you search for usages of a method implementation with this dialog Ctrl+Shift+Alt+F7, IntelliJ IDEA will ask whether or not you want to search for the base method. With any other find usages actions such as Alt+F7 or Ctrl+Alt+F7, the base method will be included in the search results automatically.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With