Microsoft has introduced that Visible Studio now helps code referencing for GitHub Copilot completions.
Code referencing permits builders to confirm if the strategies coming from Copilot are primarily based on public code, which may probably result in open-source licensing points relying on what the developer is utilizing the code for.
“By integrating code referencing into GitHub Copilot, we’re fostering a tradition of data sharing and transparency. This function not solely empowers particular person builders but additionally helps bigger groups in navigating the complexities of public code with ease,” Simona Liao, product supervisor at Microsoft, wrote in a weblog put up.
When a developer accepts a suggestion that matches code present in a public GitHub repository, they may obtain a notification that shows the match, together with details about the license sort and a hyperlink to the GitHub repository it was present in.
The corporate famous that lower than 1% of Copilot completions (maybe greater if working in open-source repositories) match public code, so builders won’t see code references for almost all of their accepted completions.
In accordance with Microsoft, code referencing solely runs on accepted strategies from Copilot, not on code a developer has written.
This function was beforehand launched in Copilot Chat, and now it’s obtainable throughout Visible Studio itself.
“This new performance presents builders higher transparency on their code completions (or “grey textual content”) by offering detailed data on any public code matches discovered. Previous to this alteration, Copilot completions with public code match have been robotically blocked. Now, builders have the selection to entry extra code completions and obtain enough details about any public code matches, enabling them to make knowledgeable choices,” Liao wrote.
