Handling Environment Variables in VSCode
June 13, 2022
To configure env variables for debugging / launching applications:
- in
launch.json
:
{
"envFile": "${workspaceFolder}/.env"
}
To configure env variables for testing:
- in
settings.json
:
{
"python.envFile": "${workspaceFolder}/.env"
}