How Visual Studio’s New Code Citation Feature Boosts Copilot Transparency

Microsoft’s latest Visual Studio update adds code citation for GitHub Copilot, letting developers see the public source, license details, and repository links for AI‑generated suggestions, thereby improving transparency and helping manage open‑source licensing risks.

21CTO
21CTO
21CTO
How Visual Studio’s New Code Citation Feature Boosts Copilot Transparency

On February 20, Microsoft announced that Visual Studio now supports code citations for GitHub Copilot completions.

The code citation feature enables developers to verify whether suggestions from Copilot are based on public code, which can raise open‑source licensing issues depending on how the code is used.

Microsoft product manager Simona Liao wrote in a blog post: “By integrating code citations into GitHub Copilot, we are fostering a culture of knowledge sharing and transparency. The feature empowers individual developers and also helps larger teams navigate the complexities of public code.”

When developers accept a suggestion that matches code in a public GitHub repository, they receive a notification showing the match, including license information and a link to the repository where the code was found.

Microsoft notes that less than 1% of Copilot completions match public code (the figure is likely higher when working in open‑source repositories), so developers will not see citations for most completions.

According to Microsoft, code citations run only on the suggestions accepted by Copilot, not on code written by the developer.

The feature was previously introduced in Copilot Chat and is now available directly in Visual Studio.

“This new feature provides developers with greater transparency about any public code matches found, increasing code completion (or ‘gray text’) visibility. Prior to this change, public code match completions were automatically suppressed.”

Now developers can choose to view more code completions and obtain sufficient information about any public code matches, enabling them to make informed decisions,” Liao wrote.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

AI CodingGitHub Copilotopen source licensingVisual Studiocode citation
21CTO
Written by

21CTO

21CTO (21CTO.com) offers developers community, training, and services, making it your go‑to learning and service platform.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.