How to auto-activate python virtual environment in Visual Studio terminal?

Viewed 46

I am using Visual Studio (not Visual Studio Code) for the development of a Python application.

Is there a way to make the Visual Studio's Developer PowerShell auto-activate the virtual environment, as is possible in PyCharm or in VS-Code? Right now, I have to explicitly run the command .\env\Scripts\activate in the Terminal to activate the Virtual Environment.

0 Answers
Related