Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ find usage no longer prompting to search for base method instead

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.

like image 372
GeneralLySpeaking Avatar asked Sep 16 '15 17:09

GeneralLySpeaking


People also ask

How do I enable usage in IntelliJ?

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.

Where is usage method in IntelliJ Mac?

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.

How do I list all methods in IntelliJ?

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.


Video Answer


2 Answers

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.

like image 82
GeneralLySpeaking Avatar answered Nov 14 '22 21:11

GeneralLySpeaking


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.

like image 42
Louis Tetevide Avatar answered Nov 14 '22 22:11

Louis Tetevide