I am using Windows 10.
The result of $env:PATH is different for Windows Powershell and VSCode integrated Powershell.
I need the VSCode integrated Powershell to have the same path as Windows Powershell, how should I rectify this?
Changing the user environment variables, reopening the terminal or reloading the window was not enough.
I had to exit and reopen VS Code manually.
This was on version 1.66.2.
Edit: I see identical behavior on version 1.85.2 - released on 2024-01-18.
Edit 2: the solution to this question is now the only way that works as of 1.99.3 (released 2025-04-15)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With