6159: Document "*.mutable" trick in manual r=matklad a=stanciuadrian

Closes #5803.

Co-authored-by: Adrian Stanciu <stanciu.adrian@gmail.com>
This commit is contained in:
bors[bot] 2020-10-07 09:05:58 +00:00 committed by GitHub
commit 761c87963d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -397,6 +397,23 @@ It is possible to change the foreground/background color of inlay hints. Just ad
}
----
==== Semantic style customizations
You can customize the look of different semantic elements in the source code. For example, mutable bindings are underlined by default and you can override this behavior by adding the following section to your `settings.json`:
[source,jsonc]
----
{
"editor.semanticTokenColorCustomizations": {
"rules": {
"*.mutable": {
"fontStyle": "", // underline is the default
},
}
},
}
----
==== Special `when` clause context for keybindings.
You may use `inRustProject` context to configure keybindings for rust projects only. For example:
[source,json]