I'm wondering if it's possible to set environment variables for the VSC Runtime as a whole without launching from terminal?
As a simple example, if I want to set all_proxy=""
for every extension that runs with VSCode (i.e. the Docker extension), the only way I know right now to accomplish this is:
- Go to my terminal (e.g. iTerm or Hyper)
- Set the environment variable, i.e.
export all_proxy=""
- Run code from the terminal, e.g.
code /path/to/project-workdir
.
Is there a way to get VSCode to load with these environment variables configured, but done on a project-specific basis without needing me to first manually set them in the terminal?
Yes, I am aware that I can set up terminal-based automation to automatically set environment variables when in a directory, but I'm wondering if this is possible for VSCode without resorting to terminal trickery?