I have just installed Rust and VS Code on a new windows machine.
I have confirmed that Rust was installed successfully and has been added to PATH
PS C:\Users\Steven> cargo --version
cargo 1.53.0 (4369396ce 2021-04-27)
PS C:\Users\Steven> $env:path -split ";"
C:\Windows\system32
C:\Windows
C:\Windows\System32\Wbem
C:\Windows\System32\WindowsPowerShell\v1.0\
C:\Windows\System32\OpenSSH\
C:\Users\Steven\.cargo\bin
C:\Users\Steven\AppData\Local\Microsoft\WindowsApps
C:\Users\Steven\AppData\Local\Programs\Microsoft VS Code\bin
But when I launch vscode and try to use cargo from the integrated terminal, it is missing. The PATH for the integrated powershell terminal in VS Code is also different.
PS C:\Users\Steven> cargo --version
cargo : The term 'cargo' is not recognized as the name of a cmdlet, function, script file, or operable program.
PS C:\Users\Steven> $env:path -split ";"
C:\Program Files\Mozilla Firefox
C:\Windows\system32
C:\Windows
C:\Windows\System32\Wbem
C:\Windows\System32\WindowsPowerShell\v1.0\
C:\Windows\System32\OpenSSH\
C:\Users\Steven\AppData\Local\Microsoft\WindowsApps
Why is the PATH in VSCode's ppowershell different?
How can I use cargo from within VSCode's integrated terminal?