mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-09 13:33:43 +00:00
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
@ -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…
Reference in New Issue
Block a user