I
I
Ivan Yakushenko2021-01-10 13:40:57
Visual Studio Code
Ivan Yakushenko, 2021-01-10 13:40:57

Is it possible to automatically load environment variables on terminal startup?

At the root of the project there is .enva 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 question

Ask a Question

731 491 924 answers to any question