Using visual studio 2008, I had a solution open and realized I need to install another program that the project I was working on used. I did this with visual studio open and attempted to debug the program, however the environment variables added by the program I installed were not visible. I could not get them to refresh until I exited VS and reloaded the solution. Is there a way to get visual studio to "refresh" its environment variable list without exiting and reloading the solution?
As an additional note, I did use process explorer to look at the environment variables for the application and could confirm that it was not aware of the environment variable I needed.
2. Refresh Environment Variables via Command Prompt (CMD) Step 1: In the Start menu, search for Command Prompt and run it as an administrator. Step 2: Type the command: “set PATH = c” (without quotation marks), press the enter key, and restart the Command Prompt.
No, you don't need to restart your system. However, you have to restart your command prompt application to update the changes done on Environment variables.
To reset settings in Visual Studio code: press ctrl + shift + p.
You can do both by restarting your R session in RStudio with the keyboard shortcut Ctrl+Shift+F10 which will totally clear your global environment of both objects and loaded packages.
Nope. Environment variable changes on Windows only take effect for new processes. You'll have to exit Visual Studio and restart it.
I don't think there's any way round this. You have to restart the VS process so it can pick up the changes to the environment.
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