

Microsoft has introduced that Visible Studio now helps code referencing for GitHub Copilot completions.
Code referencing allows builders to confirm if the recommendations coming from Copilot are primarily based on public code, which may doubtlessly 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 information sharing and transparency. This characteristic not solely empowers particular person builders but in addition 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’ll 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 increased if working in open-source repositories) match public code, so builders won’t see code references for almost all of their accepted completions.
In response to Microsoft, code referencing solely runs on accepted recommendations from Copilot, not on code a developer has written.
This characteristic was beforehand launched in Copilot Chat, and now it’s out there throughout Visible Studio itself.
“This new performance provides builders higher transparency on their code completions (or “grey textual content”) by offering detailed data on any public code matches discovered. Previous to this variation, Copilot completions with public code match had been mechanically blocked. Now, builders have the selection to entry extra code completions and obtain adequate details about any public code matches, enabling them to make knowledgeable choices,” Liao wrote.