简体   繁体   中英

Can I toggle inlay hints with a keystroke in IntelliJ?

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?

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 首选项

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM