Below you will find pages that utilize the taxonomy term “Env”
Posts
read more
Visual Studio Code env vars
This is documented but, for some reason, I always forget it.
Visual Studio Code is awesome and, in particular when debugging, it’s useful to set environment variables.
I write a lot of Google Cloud code and so I’m frequently wanting:
launch.json:
{
"version": "0.2.0",
"configurations": [
{
...
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "...",
"PROJECT": "...",
}
}
]
}
And, through a combo of forgetfulness and laziness, I tend to duplicate the values from the host environment as strings in these files.