You need to run the following line in a new window of one of your terminals (Command Prompt, Powershell, …):
code
It will open ‘VS Code’ once from them.
Now you can close and re-open ‘VS Code’ again as many time as you want using its normal shortcuts and have your environment variables.