From the course: AI-Powered Development: GitHub Copilot in Visual Studio Code

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Commit messages

Commit messages

���

We've all been there. You've just finished a refactor or written a complex feature, and now you're staring at a blank commit message box. You're tired, and the temptation is just to write, updated stuff is strong. Large language models are great at turning context into useful text, so it shouldn't be a surprise that Copilot can help here too. In Visual Studio Code, you can do that through the sparkle icon right here in the commit message box. That sparkle icon is Visual Studio's visual cue that Copilot Assistance is available. So let's go ahead and click on here. And it's giving me a summary. Fixed value error message casing and add a closed balance constant. So what it does, when you click this button, Copilot analyzes the diff, the changes between your old code and your new code and generates a concise descriptive commit message. Why is this better? For one, it's fast. Two, do you remember all the details of what you changed? You might miss something. Three, it often captures…

Contents