Skip to content

Commit 761c879

Browse files
Merge #6159
6159: Document "*.mutable" trick in manual r=matklad a=stanciuadrian Closes #5803. Co-authored-by: Adrian Stanciu <stanciu.adrian@gmail.com>
2 parents bf1043c + f7641b2 commit 761c879

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/user/manual.adoc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,23 @@ It is possible to change the foreground/background color of inlay hints. Just ad
397397
}
398398
----
399399

400+
==== Semantic style customizations
401+
402+
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`:
403+
404+
[source,jsonc]
405+
----
406+
{
407+
"editor.semanticTokenColorCustomizations": {
408+
"rules": {
409+
"*.mutable": {
410+
"fontStyle": "", // underline is the default
411+
},
412+
}
413+
},
414+
}
415+
----
416+
400417
==== Special `when` clause context for keybindings.
401418
You may use `inRustProject` context to configure keybindings for rust projects only. For example:
402419
[source,json]

0 commit comments

Comments
 (0)