2👍
You can use launch configurations and set the “env” variable within the configuration specific to your programming language.
https://code.visualstudio.com/docs/editor/debugging#_launch-configurations
👤Siva
2👍
Here is an example
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "./secret.do.not.commit/serviceAccountTasks.privateKey.json"
}
and here is the reference https://code.visualstudio.com/docs/editor/debugging#_launch-configurations
0👍
in Powershell, run
[Environment]::SetEnvironmentVariable("GOOGLE_APPLICATION_CREDENTIALS", "path\serviceAccountTasks.privateKey.json", "User")
This will set then env variable for all processes
- [Django]-A pip install doesn't add anything to pipFile or pipFile.lock
- [Django]-Empty ChoiceField selection in Django forms
- [Django]-How to unittest "new style" Django middleware
- [Django]-Passing Editable Fields as validated_data method of Django-Rest-Framework Serializer
- [Django]-Django different model manager on foreign key
Source:stackexchange.com