Skip to content

Commit 7308b3e

Browse files
Merge #11708
11708: Update manual for inlay hint customization r=Veykril a=ian-h-chamberlain Related to #6405, #6883 but not sure if they should be closed or not as this is just a documentation update. This functionality was changed as of #11445 and now can be customized using native VSCode settings instead of `rust-analyzer`-specific ones. Co-authored-by: Ian Chamberlain <[email protected]>
2 parents 61b1449 + 606ac3e commit 7308b3e

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

docs/user/manual.adoc

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -714,22 +714,24 @@ include::./generated_diagnostic.adoc[]
714714

715715
==== Color configurations
716716

717-
It is possible to change the foreground/background color of inlay hints.
717+
It is possible to change the foreground/background color and font family/size of inlay hints.
718718
Just add this to your `settings.json`:
719719

720720
[source,jsonc]
721721
----
722722
{
723+
"editor.inlayHints.fontFamily": "Courier New",
724+
"editor.inlayHints.fontSize": 11,
725+
723726
"workbench.colorCustomizations": {
724727
// Name of the theme you are currently using
725728
"[Default Dark+]": {
726-
"rust_analyzer.inlayHints.foreground": "#868686f0",
727-
"rust_analyzer.inlayHints.background": "#3d3d3d48",
729+
"editorInlayHint.foreground": "#868686f0",
730+
"editorInlayHint.background": "#3d3d3d48",
728731
729732
// Overrides for specific kinds of inlay hints
730-
"rust_analyzer.inlayHints.foreground.typeHints": "#fdb6fdf0",
731-
"rust_analyzer.inlayHints.foreground.paramHints": "#fdb6fdf0",
732-
"rust_analyzer.inlayHints.background.chainingHints": "#6b0c0c81"
733+
"editorInlayHint.typeForeground": "#fdb6fdf0",
734+
"editorInlayHint.parameterForeground": "#fdb6fdf0",
733735
}
734736
}
735737
}

0 commit comments

Comments
 (0)