Rust for Visual Studio Code (Latest: 0.4.2)
What is the repository?
The extension is continuation of RustyCode (an extension for Visual Studio Code for Rust language).
RustyCode is no longer maintained and the developer seems to have lost all interest in the extension. Due to no response from the original author, this repository was created which now contains additional features and many bug fixes.
Extension
This extension adds advanced language support for the Rust programming language within VS Code. It features:
- Rust Language Server integration.
- Autocompletion (via
racer
or RLS). - Go To Definition (via
racer
or RLS). - Go To Symbol (via
rustsym
or RLS). - Code formatting (via
rustfmt
). - Code Snippets.
- Cargo tasks (Ctrl+Shift+P and type
cargo
to view them). - …and a lot of other features. To learn more, see the documentation.
On update, please review the changelog.
Installation
-
Firstly, you will need to install VS Code
1.8
or later. -
Now in VS Code, Ctrl+P and type
ext install vscode-rust
. -
Choose to install the "Rust" extension.
The extension can also be found on the VS Code marketplace.