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

Viewed 1366

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?

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

Related