mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +00:00
Updated docs
This commit is contained in:
parent
6f239a581a
commit
c1f9a1a1c5
1 changed files with 2 additions and 0 deletions
|
@ -185,6 +185,7 @@ These contain extended information on the hovered language item.
|
||||||
Two types of inlay hints are displayed currently:
|
Two types of inlay hints are displayed currently:
|
||||||
|
|
||||||
* type hints, displaying the minimal information on the type of the expression (if the information is available)
|
* type hints, displaying the minimal information on the type of the expression (if the information is available)
|
||||||
|
* method chaining hints, type information for multi-line method chains
|
||||||
* parameter name hints, displaying the names of the parameters in the corresponding methods
|
* parameter name hints, displaying the names of the parameters in the corresponding methods
|
||||||
|
|
||||||
#### VS Code
|
#### VS Code
|
||||||
|
@ -192,6 +193,7 @@ Two types of inlay hints are displayed currently:
|
||||||
In VS Code, the following settings can be used to configure the inlay hints:
|
In VS Code, the following settings can be used to configure the inlay hints:
|
||||||
|
|
||||||
* `rust-analyzer.inlayHints.typeHints` - enable hints for inferred types.
|
* `rust-analyzer.inlayHints.typeHints` - enable hints for inferred types.
|
||||||
|
* `rust-analyzer.inlayHints.chainingHints` - enable hints for inferred types on method chains.
|
||||||
* `rust-analyzer.inlayHints.parameterHints` - enable hints for function parameters.
|
* `rust-analyzer.inlayHints.parameterHints` - enable hints for function parameters.
|
||||||
* `rust-analyzer.inlayHints.maxLength` — shortens the hints if their length exceeds the value specified. If no value is specified (`null`), no shortening is applied.
|
* `rust-analyzer.inlayHints.maxLength` — shortens the hints if their length exceeds the value specified. If no value is specified (`null`), no shortening is applied.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue