Rust on wsl2 plus toolchains

hi. i'm just starting with Rust and i've selected to use Visual Studio Code for my IDE. i will also use the gcc toolchains from my ubuntu wsl.

anybody have any tips n tricks for such dev environment?

Probably unsurprisingly, the WSL extension for vscode works nicely. Make sure to use that to open things rather than using the \\wsl$\ "network" mount. You can use the WSL explorer in vscode to open a project, or run code . from the project directory within WSL (but I may have had to do something extra to get that way working properly for myself).

Beyond that, I think the advice would be the same as usual for using rust with vscode: Use rustup to install/update rust, and use the rust-analyzer extension for the actual language support in vscode.

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.