From the course: GitHub Copilot for Software Developers by Microsoft Press
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Generate functions from comments - Github Copilot Tutorial
From the course: GitHub Copilot for Software Developers by Microsoft Press
Generate functions from comments
- All right, so in this first video of this section, we're going to focus on one of the most useful patterns in GitHub Copilot, which is writing a descriptive comment, and then letting Copilot generate the corresponding code for you, right? This is especially useful because a lot of software developers are either required to do this, or, you know, just feel like it's a good practice where, you know, in addition to writing your code, you also document it very thoroughly with a comment. And the good news is, with GitHub Copilot, it can actually take the comments that you write and write code from those in a lot of cases. And you can obviously go in either direction, right? You can have it write code from comments, or comments for the code that you wrote. So whichever one you prefer to do, GitHub Copilot can help you out. We're going to take a look at writing comments and then generating code from those in this video though. So one of the simplest and most effective ways to guide Copilot…