1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Visual Studio Code Question (Python and Django)

Discussion in 'HTML, Graphics & Programming' started by Cromulent, Apr 30, 2018.

  1. Cromulent

    Wise Guy

    Joined: Nov 1, 2007

    Posts: 2,498

    I've setup Visual Studio Code on my Linux install and installed all the required extensions. I've got it so that it runs each workspace in its own virtualenv which is great but when I open the terminal in Visual Studio code I have to run:

    Code:
    source venv/bin/activate
    
    every time which is a bit of a pain. Is there a way to get the Terminal in Visual Studio Code to automatically load the virtualenv?

    If not I might as well just use a normal terminal which has other advantages. Plus I don't have any run configs or debugging configs which I'm not sure how to get with Python and Django.