From the course: Python Standard Library Essential Training

Setting up Visual Studio Code - Python Tutorial

From the course: Python Standard Library Essential Training

Start my 1-month free trial

Setting up Visual Studio Code

- [Instructor] If you've decided to use Visual Studio Code for this course, there's a few things that you should set up to make your life a little bit easier. So first, click on the Extensions view and then install the official Python extension from Microsoft. If you just type the word python in the search box, you'll see that the official Python extension comes up first, and you can see that it's pretty popular. It's got 30 million downloads, so Microsoft is doing something right here. So make sure you install this. All right, that's step number one. Step number two is, go to the Settings of Visual Studio Code and then search for the execute in, just type execute in, and you should see this Execute in File Dir Python setting. Make sure that you have this box checked. And it says, "When executing a file in the terminal, "whether to use execute in the file's directory, "instead of the current open folder." And you're going to want to have that checked because later on in the course, when we get to the section on working with files, you want to make sure that the Python code is looking in the Files Directory for our sample data, rather than whatever the current folder is. All right, that's number two, so, make sure you check that. You might notice when you open up a Python file, if you see this little popup that says, Linter python is not installed, don't worry about this, for the purposes of this course, I'm not going to be doing any linting, so I'm just going to click on Do not show this again. All right, so that should be all you need to do to set up VS Code, so, let's get started.

Contents