If you add/change some environment variables (e.g. PATH) on windows, even after restarting 'VS Code' it will not be available in VS Code integrated terminals. What should I do to refresh those environment variables? (without restart or log-out) asked Feb 12, 2019 at 15:20
Mostafa AghajaniMostafa Aghajani 1,5161 gold badge12 silver badges18 bronze badges 1 You need to run the following line in a new window of one of your terminals (Command Prompt, Powershell, ...):
It will open 'VS Code' once from them. answered Feb 12, 2019 at 15:20
Mostafa AghajaniMostafa Aghajani 1,5161 gold badge12 silver badges18 bronze badges 9 This manually resets the path variable in the specific PowerShell terminal.
answered Dec 7, 2021 at 6:38
Chocolatey comes with a answered Apr 12, 2020 at 0:21
LeeroyLeeroy 1,8231 gold badge14 silver badges21 bronze badges 2 I got the following to work (at least on VS Code 1.62.00).
Make sure that you are on the new terminal, as many times after restarting VS Code it might try to restore the old terminal. The new terminal should be up to date. answered Nov 5, 2021 at 17:54
yoel halbyoel halb 11.9k3 gold badges53 silver badges51 bronze badges The following approach worked for me.
The new environment variable will now be available answered May 22 at 11:23
gerardgerard 82410 silver badges26 bronze badges Issue Type: Bug I'm using visual code with extension "Remote - SSH". How to reproduce.
VS Code version: Code 1.53.2
(622cb03, 2021-02-11T11:48:04.245Z)
(1 theme extensions excluded) A/B Experiments |