Skip to content

Commit

Permalink
docs: Add VsCode note and subsections in tips and tricks
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioGasquez committed Jul 26, 2023
1 parent 28b843a commit 2cf23e4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/tooling/text-editors-and-ides.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ Alongside Rust Analyzer (RA), there are other extensions that might be very help

## Tips and Tricks

### Using Rust Analyzer with `no_std`

If you are developing for a target that does not have `std` support, Rust Analyzer can behave strangely, often reporting various errors. This can be resolved by creating a `.vscode/settings.json` file in your project and populating it with the following:

```json
Expand All @@ -28,6 +30,8 @@ If you are developing for a target that does not have `std` support, Rust Analyz
}
```

### Cargo hints when using custom toolchains

If you are using a custom toolchain, as you would with Xtensa targets, you can provide some hints to `cargo` via the `rust-toolchain.toml` file to improve the user experience:

```toml
Expand All @@ -39,8 +43,7 @@ targets = ["xtensa-esp32-none-elf"]

## Other IDEs

There are other IDEs like [CLion] or [vim] that also have pretty good support for Rust,
but we won't be covering them here.
Eventhough we have only covered VS Code because it has good support for Rust and is very popular, there are other IDEs like [CLion] or [vim] that also have pretty good support for Rust, but we won't be covering them here.

[CLion]: https://www.jetbrains.com/clion/
[vim]: https://www.vim.org/

0 comments on commit 2cf23e4

Please sign in to comment.