IntelliJ IDE (Rider, Android Studio...) - how to hide "usage" links above properties/methods/etc

21.5k Views Asked by At

IntelliJ Rider IDE version 2022.1:
Above class properties or methods I have this link called "usages".

How do I turn the "usages"-link off?

They are driving me crazy. I don't know what these things are called, so googling didn't give me any results. I glanced through myriad of settings in the IntelliJ Settings window - also no idea.

screenshot with usage links

3

There are 3 best solutions below

7
On BEST ANSWER

You can hide all metrics by disabling "Code Vision" (CTRL+SHIFT+A + code vision for a quick access in the settings).

You can also hide specific metrics by right clicking on it.

enter image description here

It is also possible to toggle the hints globally with the action Toggle Inlay Hints Globally (accessible with CTRL+SHIT+A + Toggle Inlay)

enter image description here

You can also assign a shortcut to this action.

0
On

In a windows machine. File->Settings->(Search code vision)->remove tick of Usages. Also you can remove other code visions if you want. Recommended to keep the tick of Related problems. (short cut key for settings - Ctrl+Alt+S).

0
On

For the latest android studio dolphine.File->Settings->Inlay Hints->Code Hints(remove tick)