Skip to content

Instantly share code, notes, and snippets.

@JohnL4
Last active April 4, 2023 21:00
Show Gist options
  • Save JohnL4/c84e5ed4f56c42ee8e574183ba7f944f to your computer and use it in GitHub Desktop.
Save JohnL4/c84e5ed4f56c42ee8e574183ba7f944f to your computer and use it in GitHub Desktop.
How to fix rust-analyzer inlay hints. (Actually, all inlay hints.)
// Edit your settings.json, probably located at C:\Users\j6l\AppData\Roaming\Code\User\settings.json
// The following is a snippet. Note the background is completely transparent (trailing "0").
// (Note the actual VS Code settings can't have comments.)
"workbench.colorTheme": "Default Light+",
"breadcrumbs.enabled": true,
"workbench.colorCustomizations": {
"[Default Light+]": {
"editorBracketMatch.border": "#00ffff",
"editorBracketMatch.background": "#00ffff80",
"editor.lineHighlightBackground": "#ffff0030",
"editor.lineHighlightBorder": "#ffff0080",
"editorRuler.foreground": "#ff000060",
"terminal.ansiBrightYellow": "#7a7a00",
"editorInlayHint.background": "#fff0",
"editorInlayHint.foreground": "#999",
},
},
"editor.inlayHints.fontSize": 12,
"editor.rulers": [
120
],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment