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
>**Note**: There is also another popular Rust extension in the VS Code Marketplace (extension ID: rust-lang.rust) but this extension is deprecated and rust-analyzer is the recommended VS Code Rust extension by rust-lang.org.
16
+
> [!NOTE]
17
+
> There is also another popular Rust extension in the VS Code Marketplace (extension ID: rust-lang.rust) but this extension is deprecated and rust-analyzer is the recommended VS Code Rust extension by rust-lang.org.
17
18
18
19
## Installation
19
20
20
21
### 1. Install Rust
21
22
22
23
First you will need to have the Rust toolset installed on your machine. Rust is installed via the [rustup](https://rustup.rs) installer, which supports installation on Windows, macOS, and Linux. Follow the rustup installation guidance for your platform, taking care to install any extra tools required to build and run Rust programs.
23
24
24
-
>**Note**: As with installing any new toolset on your machine, you'll want to make sure to restart your terminal/Command Prompt and VS Code instances to use the updated toolset location in your platform's PATH variable.
25
+
> [!NOTE]
26
+
> As with installing any new toolset on your machine, you'll want to make sure to restart your terminal/Command Prompt and VS Code instances to use the updated toolset location in your platform's PATH variable.
25
27
26
28
### 2. Install the rust-analyzer extension
27
29
@@ -76,7 +78,8 @@ cd hello_world
76
78
code .
77
79
```
78
80
79
-
>**Note**: Enable [Workspace Trust](/docs/editing/workspaces/workspace-trust.md) for the new folder as you are the author. You can enable Workspace Trust for your entire project folder parent to avoid being prompted when you create new projects by checking the option to **Trust the authors of all the files in parent folder 'my_projects`**.
81
+
> [!NOTE]
82
+
> Enable [Workspace Trust](/docs/editing/workspaces/workspace-trust.md) for the new folder as you are the author. You can enable Workspace Trust for your entire project folder parent to avoid being prompted when you create new projects by checking the option to **Trust the authors of all the files in parent folder 'my_projects`**.
80
83
81
84
`cargo new` creates a simple Hello World project with a `main.rs` source code file and `Cargo.toml`[Cargo manifest](https://doc.rust-lang.org/cargo/reference/manifest.html) file.
82
85
@@ -149,7 +152,8 @@ As you type in a Rust file, IntelliSense provides you with suggested completions
149
152
150
153

151
154
152
-
>**Tip**: Use `kb(editor.action.triggerSuggest)` to trigger the suggestions manually.
155
+
> [!TIP]
156
+
> Use `kb(editor.action.triggerSuggest)` to trigger the suggestions manually.
153
157
154
158
## Semantic syntax highlighting
155
159
@@ -298,7 +302,8 @@ If you see linker errors such as **"error: linker `link.exe` not found"** when y
298
302
299
303
On Windows, you will need to also install [Microsoft C++ Build Tools](https://visualstudio.microsoft.com/visual-cpp-build-tools/) in order to get the C/C++ linker `link.exe`. Be sure to select the **Desktop Development with C++** when running the Visual Studio installer.
300
304
301
-
>**Note**: You can use the C++ toolset from Visual Studio Build Tools along with Visual Studio Code to compile, build, and verify any codebase as long as you also have a valid Visual Studio license (either Community, Pro, or Enterprise).
305
+
> [!NOTE]
306
+
> You can use the C++ toolset from Visual Studio Build Tools along with Visual Studio Code to compile, build, and verify any codebase as long as you also have a valid Visual Studio license (either Community, Pro, or Enterprise).
0 commit comments