Merge #6159
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:
commit
761c87963d
1 changed files with 17 additions and 0 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue