Answer the question
In order to leave comments, you need to log in
Is it possible to automatically load environment variables on terminal startup?
At the root of the project there is .env
a file with environment variables that VS Code loads fine when the project is started (Run / Debug), but it ignores if you just activate the terminal ( Ctrl + Shift + `
), at the same time, if the project has a virtual environment (for example, python venv ), then it activates it for each running terminal. Is it possible to automatically load these variables using VS Code, and not third-party scripts?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question