Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

$env:PATH different for Windows Powershell and VSCode integrated Powershell

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?

like image 405
william007 Avatar asked Dec 04 '25 16:12

william007


1 Answers

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)

like image 122
Simon Poltier Avatar answered Dec 06 '25 13:12

Simon Poltier