IntelliJ IDEA 2022.3 Help

Inlay hints

Inlay hints are special markers that appear in the editor and provide you with additional information about your code, like the names of the parameters that a called method expects. Other types of hints inform you about annotations, method parameters, usages, and so on (depending on the language).

Inlay hints example

Enable/disable inlay hints

  1. Open the Settings dialog (Ctrl+Alt+S) and go to Editor | Inlay Hints.

  2. Expand the groups of inlay hints and select/clear checkboxes for specific languages and technologies. Check the hint description and preview to the right.

    Settings | Inlay Hints

In inlay hints settings, you can configure which types of information you want to get in hints.

You can configure inlay hints or toggle them off from the editor: right-click a hint and select Hints Settings.

Configure inlay hints ij

Change inlay hints appearance

  1. In the Settings dialog (Ctrl+Alt+S), go to Editor | Color Scheme | Language Defaults, then select Inline hints.

  2. Select the inlay hint type and state, and configure the font color and effects as required.

Last modified: 09 January 2023