inlay hints for Rust development with Visual Studio Code
Open Settings.json and enter the following.
I am using Darcula theme so I am wrapping colorCustomizations inside that key.
- You can remove that key if you want color customizations to be applied across all themes.
- Change color for
typeForeground
andtypeBackground
to your likings - Uncomment line which has
offUnlessPressed
to toggle inlayHints upon keypressCTRL + alt
This is how it looks after inlay hints setting change.
visit https://github.com/rust-lang/rust-analyzer/issues/4334 for issue discussions.