Skip to content

Copilot for Commit Messages

Using GitHub Copilot for Commit Messages in VS Code

Now that we have a new feature and a few tests to go along with it, let's use Copilot to assist us in generating a commit message in Visual Studio Code. Here's how you can use it:

  1. Open the Source Control panel in VS Code (the icon looks like a forked branch). Image: Source Control panel
  2. Stage the changes you want to commit.
  3. From here, simple click the star icon to generate a commit using Copilot. Image: GitHub Copilot suggestions
  4. Hit the commit button to commit your changes.

Remember, a good commit message is concise but clearly describes the changes made. GitHub Copilot can help generate these messages, but always review and make sure the message accurately represents your changes.