From the course: Getting Started with Python Object Oriented Programming: A Hands-On Approach
Using Codespaces - Python Tutorial
From the course: Getting Started with Python Object Oriented Programming: A Hands-On Approach
Using Codespaces
- [Instructor] To start using code spaces for this course, the first thing you need to do is to create a fork of the LinkedIn learning repository. You do that by visiting the URL provided, and when you're there, you find the fork button. Click that and then choose the owner. It's probably going to be your own account you want for that. You can keep the copy of the main branch only selected 'cause we only need that branch, and then you might want to give it your own name. If you use a default name, it'll be quite long, so I'm just going to change that to something a bit more manageable, just the first part of the name, and then you simply click the create fork button. Once you created your fork, you can now go into the code section by clicking the green button here, and you can see I currently have no code spaces for this repository. So create code space on Main. Now this may take a little time. When it's done, you'll see the whole repo is now being copied into a browser environment with VS Code, and it's a very useful way to code, 'cause it means you can access your code from anywhere and not have to worry about local setup. Now there's no actual code there at the moment, 'cause I'm going to be uploading code as we go forward through the course. This is just the initial setup, but there's a couple of things I want to draw attention to. So one is the extensions. You can see here it has the Python extension installed, which is great, and that happened due to the initial setup of the repo, but there's one that I want to add, which is autopep8. And this is really useful 'cause it provides default settings for auto formatting, so you can simply use a shortcut and all your code will be properly spaced and right number of lines between different sections, et cetera. So I want to install autopep8. Okay, so this is all set up and ready to go, and like I say, you will actually have some code here, which I'll be uploading as I move forward. Okay.