Is there any way to set environment variables in Visual Studio Code?
Assuming you mean for a debugging session(?) then you can include a env property in your launch configuration. If you open the .vscode/launch.json file in your workspace or select Debug > Open Configurations then you should see a set of launch configurations for debugging your code. You can then add to it an env property … Read more