You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/building/suggested.md
+31-3Lines changed: 31 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,8 @@ You can also install the hook as a step of running `./x.py setup`!
19
19
20
20
## Configuring `rust-analyzer` for `rustc`
21
21
22
+
### Visual Studio Code
23
+
22
24
`rust-analyzer` can help you check and format your code whenever you save
23
25
a file. By default, `rust-analyzer` runs the `cargo check` and `rustfmt`
24
26
commands, but you can override these commands to use more adapted versions
@@ -31,9 +33,6 @@ If you have enough free disk space and you would like to be able to run `x.py` c
31
33
rust-analyzer runs in the background, you can also add `--build-dir build-rust-analyzer` to the
32
34
`overrideCommand` to avoid x.py locking.
33
35
34
-
If you're running `coc.nvim`, you can use `:CocLocalConfig` to create a
35
-
`.vim/coc-settings.json` and copy the settings from [this file](https://github.com/rust-lang/rust/blob/master/src/etc/vscode_settings.json).
36
-
37
36
If running `./x.py check` on save is inconvenient, in VS Code you can use a [Build
0 commit comments