mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 04:53:34 +00:00
Document formatting capabilities
This commit is contained in:
parent
8b24f158f7
commit
ee9fc3f998
1 changed files with 2 additions and 0 deletions
|
@ -45,6 +45,8 @@ It's better to remove existing Rust plugins to avoid interference.
|
||||||
`#[test]`, this action runs this specific test. If the cursor is
|
`#[test]`, this action runs this specific test. If the cursor is
|
||||||
outside of the test function, this re-runs the last test. Do bind
|
outside of the test function, this re-runs the last test. Do bind
|
||||||
this to a shortcut!
|
this to a shortcut!
|
||||||
|
- **Format document**. Formats the current file with rustfmt.
|
||||||
|
Rustfmt must be installed separately with `rustup component add rustfmt`.
|
||||||
|
|
||||||
* Typing assists
|
* Typing assists
|
||||||
- typing `let =` tries to smartly add `;` if `=` is followed by an existing expression.
|
- typing `let =` tries to smartly add `;` if `=` is followed by an existing expression.
|
||||||
|
|
Loading…
Reference in a new issue