Unnamed repository; edit this file 'description' to name the repository.
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]>
bors[bot] 2022-03-16
parent 61b1449 · parent 606ac3e · commit 7308b3e
-rw-r--r--docs/user/manual.adoc14
1 files changed, 8 insertions, 6 deletions
diff --git a/docs/user/manual.adoc b/docs/user/manual.adoc
index e8386607a0..ba28f68029 100644
--- a/docs/user/manual.adoc
+++ b/docs/user/manual.adoc
@@ -714,22 +714,24 @@ include::./generated_diagnostic.adoc[]
==== Color configurations
-It is possible to change the foreground/background color of inlay hints.
+It is possible to change the foreground/background color and font family/size of inlay hints.
Just add this to your `settings.json`:
[source,jsonc]
----
{
+ "editor.inlayHints.fontFamily": "Courier New",
+ "editor.inlayHints.fontSize": 11,
+
"workbench.colorCustomizations": {
// Name of the theme you are currently using
"[Default Dark+]": {
- "rust_analyzer.inlayHints.foreground": "#868686f0",
- "rust_analyzer.inlayHints.background": "#3d3d3d48",
+ "editorInlayHint.foreground": "#868686f0",
+ "editorInlayHint.background": "#3d3d3d48",
// Overrides for specific kinds of inlay hints
- "rust_analyzer.inlayHints.foreground.typeHints": "#fdb6fdf0",
- "rust_analyzer.inlayHints.foreground.paramHints": "#fdb6fdf0",
- "rust_analyzer.inlayHints.background.chainingHints": "#6b0c0c81"
+ "editorInlayHint.typeForeground": "#fdb6fdf0",
+ "editorInlayHint.parameterForeground": "#fdb6fdf0",
}
}
}