News

Copilot AI Takes Over Git Commits in Visual Studio 2022

Add "write Git commits" to the growing list of developer tasks in Visual Studio 2022 that are now being handled by AI.

For those who might not be familiar, GitHub defines Git commits as: "snapshots of your entire repository at specific times ... based around logical units of change. Over time, commits should tell a story of the history of your repository and how it came to be the way that it currently is."

Now AI is helping document that repo history. While seemingly a small tweak, it illustrates how the Visual Studio dev team is continuously integrating AI for incremental productivity boosts. It is also a favorite feature of Mads Kristensen, principal product manager for Visual Studio, whose Oct. 30 tease post on social media garnered some 104,000 views.

After that tease and a follow-up "it's here" comment yesterday, Microsoft's Jessie Houghton published "Write Your Git Commits with GitHub Copilot," which explains how the new functionality can help developers in several ways, such as:

  • Your teammates can more effectively review your changes in a pull request
  • Your Git history tells a story that includes both "what" was changed and "why"
  • You can easily pinpoint the origins of a bug or breaking change
  • You save yourself and/or coworkers hours of digging around while troubleshooting
  • You make your repository easier to ramp up to and contribute to in the future
AI-Generated Commit in Animated Action
[Click on image for larger, animated GIF view.] AI-Generated Commit in Animated Action (source: Microsoft).

"Use the new 'Add AI Generated Commit Message' sparkle pen icon in the Git Changes window to generate a suggestion," Houghton said. "GitHub Copilot will look at the file changes in your commit, summarize them, and then describe each change. You can then 'Insert AI Suggestion' or 'Discard.'"

Click the Sparkle Pen Icon
[Click on image for larger view.] Click the Sparkle Pen Icon (source: X).

While providing the who, what, where and when details of a Git commit is probably pretty easy for AI, the "why" might be a bit harder, as one developer noted, so users can add their own input to augment the commit.

A Git Commit
[Click on image for larger view.] A Git Commit (source: Microsoft).

"We hope this new feature makes writing your Git commit messages easier -- leading to productivity for you, your teammates, and even 'future you' when reviewing your changes and helping others understand your Git history," Houghton concluded. "Share your thoughts with us, so we can continue to improve your experience."

She said those thoughts can be shared via Microsoft's Developer Community feedback/bug report/feature request site or the "report a problem" feature right in the IDE.

The new functionality can be found in the latest preview, which, following the recent release of v17.8, is now Visual Studio 2022 17.9 Preview 1.

As the new feature comes from the for-pay GitHub Copilot tool, an active subscription is required, along with an updated GitHub Copilot Chat extension. The latter has been downloaded some 155,000 times, while the main Copilot tool now sports some 671,000 downloads.

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • Mastering Blazor Authentication and Authorization

    At the Visual Studio Live! @ Microsoft HQ developer conference set for August, Rockford Lhotka will explain the ins and outs of authentication across Blazor Server, WebAssembly, and .NET MAUI Hybrid apps, and show how to use identity and claims to customize application behavior through fine-grained authorization.

  • Linear Support Vector Regression from Scratch Using C# with Evolutionary Training

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the linear support vector regression (linear SVR) technique, where the goal is to predict a single numeric value. A linear SVR model uses an unusual error/loss function and cannot be trained using standard simple techniques, and so evolutionary optimization training is used.

  • Low-Code Report Says AI Will Enhance, Not Replace DIY Dev Tools

    Along with replacing software developers and possibly killing humanity, advanced AI is seen by many as a death knell for the do-it-yourself, low-code/no-code tooling industry, but a new report belies that notion.

  • Vibe Coding with Latest Visual Studio Preview

    Microsoft's latest Visual Studio preview facilitates "vibe coding," where developers mainly use GitHub Copilot AI to do all the programming in accordance with spoken or typed instructions.

  • Steve Sanderson Previews AI App Dev: Small Models, Agents and a Blazor Voice Assistant

    Blazor creator Steve Sanderson presented a keynote at the recent NDC London 2025 conference where he previewed the future of .NET application development with smaller AI models and autonomous agents, along with showcasing a new Blazor voice assistant project demonstrating cutting-edge functionality.

Subscribe on YouTube