From the course: Visual Studio Code for Python Developers

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

Editing Python code

Editing Python code

- [Instructor] Let's try editing some Python code. I've got my exercise files folder open, here's my workspace. And we've already seen that to create a new file and start editing some code, we can just type the new file command by using Command or Control + N. I can also just right click the folder where I want to create the new file and just choose new file from the context menu. So I'll just go ahead and save this and give it a name I'll call it Test and I'll add the .PY extension so that VS Code knows it's a python file. IntelliSense and Autocomplete features are provided for files that are in the current working folder as well as Python packages that are installed in standard locations. So if I start typing IMP you'll see the import key word there is appearing in the Autocomplete pop-up. So I'll just hit Enter to confirm that. And then I can start typing MAT and you can see that the Autocomplete is suggesting the math module. And so once again I can just either there hit Enter or…

Contents