diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-10-07 10:05:58 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-10-07 10:05:58 +0100 |
commit | 761c87963d59ea0fe2d08a23aae94f0913e2660d (patch) | |
tree | 7b9ee41e2380152daaea3edf0faa6557323dfef6 | |
parent | bf1043cac2f3cc2264d9fcda242f63616f4efa1b (diff) | |
parent | f7641b2e3545fdca40fb560526f8ae63f0b218c3 (diff) |
Merge #6159
6159: Document "*.mutable" trick in manual r=matklad a=stanciuadrian
Closes #5803.
Co-authored-by: Adrian Stanciu <[email protected]>
-rw-r--r-- | docs/user/manual.adoc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/user/manual.adoc b/docs/user/manual.adoc index c1a778852..46e7bd091 100644 --- a/docs/user/manual.adoc +++ b/docs/user/manual.adoc | |||
@@ -397,6 +397,23 @@ It is possible to change the foreground/background color of inlay hints. Just ad | |||
397 | } | 397 | } |
398 | ---- | 398 | ---- |
399 | 399 | ||
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 | |||
400 | ==== Special `when` clause context for keybindings. | 417 | ==== Special `when` clause context for keybindings. |
401 | You may use `inRustProject` context to configure keybindings for rust projects only. For example: | 418 | You may use `inRustProject` context to configure keybindings for rust projects only. For example: |
402 | [source,json] | 419 | [source,json] |