Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide the "1 usage" indicator floating in code editor in IntelliJ 2020

Somehow I did something to make IntelliJ indicate a number of usages for each variable on a class. Text such as "1 usage" appears above each variable declaration.

How can I turn this off?

like image 287
Basil Bourque Avatar asked Sep 11 '25 02:09

Basil Bourque


1 Answers

See the Show hints section of Code Vision in Preferences/Settings under Editor > Java. See documentation.

You may uncheck the Usages item as it seen in the screenshot.

enter image description here

IntelliJ 2020.2 gains a new third checkbox, Broken usages, along with the Usages & Inheritors items.

Intellij 2022.2 reorganized the inlay hints preferences, so the option is in a different place:

enter image description here

like image 75
Ersoy Avatar answered Sep 13 '25 16:09

Ersoy