For VS Code, I use rust-analyzer
to handle syntax highlighting and flychecking.
How do I remove the inlay type and parameter annotations in grey below?
New Answer for VS Code: https://stackoverflow.com/a/72338341/9363973
If you're not using VS Code you'll need to manually edit the JSON config file of your rust-analyzer install (helpful link to the documentation). Basically
{
"inlayHints": {
"typeHints": false,
"parameterHints": false
},
// further configuration
}
Old answer for VS Code:
In Visual Studio Code you can easily do this.