mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +00:00
Update manual for inlay hint customization
Closes #6883 This functionality was changed as of #11445 and now can be customized using native VSCode settings instead of `rust-analyzer`-specific ones.
This commit is contained in:
parent
683fea4de4
commit
606ac3e73a
1 changed files with 8 additions and 6 deletions
|
@ -714,22 +714,24 @@ include::./generated_diagnostic.adoc[]
|
||||||
|
|
||||||
==== Color configurations
|
==== 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`:
|
Just add this to your `settings.json`:
|
||||||
|
|
||||||
[source,jsonc]
|
[source,jsonc]
|
||||||
----
|
----
|
||||||
{
|
{
|
||||||
|
"editor.inlayHints.fontFamily": "Courier New",
|
||||||
|
"editor.inlayHints.fontSize": 11,
|
||||||
|
|
||||||
"workbench.colorCustomizations": {
|
"workbench.colorCustomizations": {
|
||||||
// Name of the theme you are currently using
|
// Name of the theme you are currently using
|
||||||
"[Default Dark+]": {
|
"[Default Dark+]": {
|
||||||
"rust_analyzer.inlayHints.foreground": "#868686f0",
|
"editorInlayHint.foreground": "#868686f0",
|
||||||
"rust_analyzer.inlayHints.background": "#3d3d3d48",
|
"editorInlayHint.background": "#3d3d3d48",
|
||||||
|
|
||||||
// Overrides for specific kinds of inlay hints
|
// Overrides for specific kinds of inlay hints
|
||||||
"rust_analyzer.inlayHints.foreground.typeHints": "#fdb6fdf0",
|
"editorInlayHint.typeForeground": "#fdb6fdf0",
|
||||||
"rust_analyzer.inlayHints.foreground.paramHints": "#fdb6fdf0",
|
"editorInlayHint.parameterForeground": "#fdb6fdf0",
|
||||||
"rust_analyzer.inlayHints.background.chainingHints": "#6b0c0c81"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue