In this video, learn to install the VS Code IDE on your Mac and configure it to work with the Python programming language.
- We'll be using Visual Studio Code, or VS Code for short, as our IDE for this course. VS Code is a great cross-platform editor, as it's fast, easy to customize, and has a friendly user interface. To get started, we'll open up the VS Code webpage. I'll be showing you this setup, for the MAC operating system in this video. If you're using a Windows machine, please skip to the next video. So the first thing we're going to do, is come to code.visualstudio.com, and then we're going to choose the Download for Mac button. Once it's finished downloading, we can double click the zip file to open it up, we're going to copy our file, over to the applications folder. Let's close down the browser. when you come to Visual Studio Code, is the welcome screen. From here, you can create a new file, open up a folder, or customize it with extensions. In order to understand a bit more about this particular IDE, the various options that are available to us, inside of VS Code. First we can explore the various files, search across files, Further, we can do launching and debugging, as well as manage extensions. For now, this is good enough to get you started. So we're going to hit exit, to leave this overview. Great, in order to work with Python, inside of Visual Studio Code, we need to use a Python extension. So the first thing we're going to do, is go to tools and languages, and then we're going to choose Python, it's the very first option. If we click on this extension, we get tons of information, about the various features that it supports. It has things like linting, debugging, or code navigation. Don't worry if you don't understand everything about this right now, it will become more and more familiar, as you continue on your programming journey. For now, let's go ahead and install it, by clicking on the install button, and then once that's complete, we can go ahead and restart Visual Studio Code. So we're going to close, and then open it up again. Now before we can officially get started working with Python, we need to choose an interpreter. that means it goes through your code line by line, in order to give you some results. To an install an interpreter, we can open up the command palette. You can access the command palette, using command shift P, and then you want to choose Python, select interpreter. We want to choose the Python 3 option, that we've already installed. So I'll just choose the very last one, and that's it. We now have everything we need, in order to write and run our code inside of an IDE.
- Writing source code
- Basic statements and expressions
- Working with numbers and strings
- Writing conditional code
- Increasing your efficiency with functions
- Working with comments
- Making decisions in code
- Troubleshooting errors
- Learning about other languages