VSCode Terminal Does Not Match the Windows System PATH

If your Windows PATH environment variable in your VSCode terminal does not match the one in your terminal outside of VSCode, it’s probably this setting in VSCode: terminal.integrated.enablePersistentSessions Uncheck this or set it to be false, and restart VScode and all should be right. By default, this option persists your terminal sessions across reloads (VSCode Terminal Advanced Docs). That might be handy, so re-enabling it afterwards would be okay if you really wanted it, but for me I’ve disabled it in my user settings: ...

August 29, 2025 · Jonathan B