Can I toggle inlay hints with a keystroke in IntelliJ?

1k Views Asked by At

I'm using Rust, but this is probably language-independent. Sometimes I find inlay hints for types, etc. very helpful, but sometimes they are in the way. Is there a way to turn them on and off with a keystroke?

1

There are 1 best solutions below

0
On

Yes. Go to Preferences, then Keymap, and search for "inlay". There you will find an entry called "Toggle Inlay Hints Globally" which probably is not bound to a key. That's the one you want; bind it to whatever keystroke(s) you like.

IntelliJ Preferences for Inlay Hints