From the course: AI-Powered Development: GitHub Copilot in Visual Studio
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Code completion: Python - Visual Studio Tutorial
From the course: AI-Powered Development: GitHub Copilot in Visual Studio
Code completion: Python
- [Instructor] In this final video of the chapter, let's step outside of .net and see how Copilot code completions work in another language, Python. The principle is the same. We'll use a comment to describe what we want, and Copilot will generate the code to match. So I'm in this project, Simple Python. I'm in this P-Y file, this Py file here, and I've already got a comment in here that I wanna read a file and handle missing file errors. So all I do is go to the end of the comment line, press enter, and the completion shows these lines of codes. So we'll go ahead and press tab to get the finished results. This example shows that Copilot code completions aren't limited to one language or platform. Whether you're writing code in Python, C Sharp, Visual Basic or beyond, comments like these can act as powerful prompts guiding Copilot to generate clean, structured code that fits your needs. It's not just about speed. It's…