How do I turn off these end-of-line inlay hints?

Answered

I'd like to disable these inlay hints, and others like them:

There's also a similar hint elsewhere that says "^lambda".

I've unchecked this:

For the specific language shown here, Kotlin, the top-level "Show parameter hints" is also unchecked.

I don't know if any of the Java settings affect Kotlin, but under Java there are a few categories checked on (Method Chains, Annotation, Code Vision), but the associated checkboxes are disabled, so I can't uncheck them.

0
3 comments

If you have the Settings (Preferences on macOS) | Editor | Inlay Hints | Kotlin | Show parameter hints enable, please try disabling it. Does it help?

0

The checkboxes were disabled, so I couldn't change them...


I discovered, however, that if I re-enable all hints globally:

...that I can then turn off the previously-disabled checkboxes, then disable globally again.

This would appear to be a bug in how the hierarchy of the settings is working. If I globally disable the hints, that should turn ALL of the hints off, not simply lock in the previous more-specific settings.

I have no objection to settings for specific hints staying checked on per se, but those should be latent states, hints that will automatically be re-enabled once the global setting is re-enabled.

0

Thank you for the information. Indeed it is a bug with Kotlin files. Please vote for this issue: https://youtrack.jetbrains.com/issue/KT-34980

0

Please sign in to leave a comment.