Use fresh environment block on new terminals in Windows
See original GitHub issueAt the moment, if any environment variables change, or new “apps” are installed while VS Code is running, in order for those changes to be recognized VS Code needs to be closed and re-open.
For instance, when running npm i -g <something>
or choco install <package>
in another prompt or powershell window, those new commands are not recognized until the app is rebooted.
It would be great if adding a new terminal instance with +
would load these new variables/apps/notsurewhatterminologytouse.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:87
- Comments:41 (8 by maintainers)
Top Results From Across the Web
cmd - Is there a command to refresh environment variables ...
The terminal I set the path could see the new Path variable already (in Windows 7). taskkill /f /im explorer.exe && explorer.exe. Share....
Read more >Introducing Windows Terminal - Windows Command Line
Windows Terminal is a new, modern, fast, efficient, powerful, and productive terminal application for users of command-line tools and shells ...
Read more >Windows Terminal adds advanced tab ... - Bleeping Computer
To use the new tab switcher for switching to the next and previous ... spawned under Terminal will be given a fresh new...
Read more >Environment Variables - Foundry Learn
On Windows · 1. Right-click on My Computer and select Properties. · 2. Go to the Advanced tab. · 3. Click the Environment...
Read more >Chapter 2 - Environment Setup and the Command Line
For one, setting up your environment often requires you to use the command line rather than the graphical windows. For another, entering commands...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Okay so I think I found two different issues.
System Properties > Environement
variables calledTEST
$env:TEST
in both instances. Result: Not updated.Open folder
to open the directory. Check again. Result: Not updated.Open folder
. Check again. Result: Updated.Recent
, you will find that even after restarting VSCode, the environment variables are not updated.Recent Workspaces
I am a teacher on the Radboud University in the Netherlands and my students have a lot of problems with this issue. Most work on Windows 10 and for them the easiest work around is to restart their computers. Because this is counter intuitive, it often takes them a while to figure out how to solve it. So fixing this issue would be a great help to me and my students.