aboutsummaryrefslogtreecommitdiff
path: root/docs/user/manual.adoc
diff options
context:
space:
mode:
authorVeetaha <[email protected]>2020-08-26 00:37:58 +0100
committerVeetaha <[email protected]>2020-08-26 00:53:42 +0100
commit5b9a882edc20810641cb774240e5089e87dab82e (patch)
treeda25eebf9bd10e8161fcb6667b11f115cfee47e4 /docs/user/manual.adoc
parentf647edcb080f50e01762a31eebd9ca94c982c768 (diff)
Make inlay hints colors more configurable
Diffstat (limited to 'docs/user/manual.adoc')
-rw-r--r--docs/user/manual.adoc24
1 files changed, 24 insertions, 0 deletions
diff --git a/docs/user/manual.adoc b/docs/user/manual.adoc
index 144130b51..367bba546 100644
--- a/docs/user/manual.adoc
+++ b/docs/user/manual.adoc
@@ -367,6 +367,30 @@ include::./generated_assists.adoc[]
367 367
368== Editor Features 368== Editor Features
369=== VS Code 369=== VS Code
370
371==== Color configurations
372
373It is possible to change the foreground/background color of inlay hints. Just add this to your
374`settings.json`:
375
376[source,jsonc]
377----
378{
379 "workbench.colorCustomizations": {
380 // Name of the theme you are currently using
381 "[Default Dark+]": {
382 "rust_analyzer.inlayHints.foreground": "#868686f0",
383 "rust_analyzer.inlayHints.background": "#3d3d3d48",
384
385 // Overrides for specific kinds of inlay hints
386 "rust_analyzer.inlayHints.foreground.typeHints": "#fdb6fdf0",
387 "rust_analyzer.inlayHints.foreground.paramHints": "#fdb6fdf0",
388 "rust_analyzer.inlayHints.background.chainingHints": "#6b0c0c81"
389 }
390 }
391}
392----
393
370==== Special `when` clause context for keybindings. 394==== Special `when` clause context for keybindings.
371You may use `inRustProject` context to configure keybindings for rust projects only. For example: 395You may use `inRustProject` context to configure keybindings for rust projects only. For example:
372[source,json] 396[source,json]