How to switch between Rust stable version and nightly verison in VSCode?

I have installed stable and nightly version offline, how to switch between the two version?

In the command line, you do:

rustup default nightly

For switching to nighlty.

And:

rustup default stable

To switch back to stable. More information here: Rustup for managing Rust versions - The Edition Guide.

1 Like

I installed .msi offline version, so there is no rustup.

I would uninstall them and reinstall using rustup. This is the recommended way to install Rust.

Install both toolchain in different paths.

$HOME/toolchain1
$HOME/toolchain2

Symlink one of them to something like $HOME/rustbin, add that path to your $PATH. When you want to switch toolchains, change the symlink.

1 Like

Thanks! Great!