{"id":13293,"date":"2023-08-07T10:00:00","date_gmt":"2023-08-07T01:00:00","guid":{"rendered":"https:\/\/www.gigas-jp.com\/appnews\/?p=13293"},"modified":"2023-08-04T19:53:01","modified_gmt":"2023-08-04T10:53:01","slug":"github-copilot-can-now-show-suggestions-for-match-code-in-a-public-repository","status":"publish","type":"post","link":"https:\/\/www.gigas-jp.com\/appnews\/archives\/13293","title":{"rendered":"GitHub Copilot can now show suggestions for match code in a public repository"},"content":{"rendered":"\n<p>GitHub has released a private beta version of the GitHub Copilot code browsing feature to give developers this option. When code referencing is enabled, Copilot will not automatically block the matching code it generates, but instead will show it to the developer in the sidebar and let the developer decide what to do with it. Over time, this feature will also be implemented in the Copilot chat.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"1222\" height=\"713\" src=\"https:\/\/www.gigas-jp.com\/appnews\/wp-content\/uploads\/sites\/4\/2023\/08\/image.png\" alt=\"\" class=\"wp-image-13294\" \/><figcaption>Image Credit : Github<\/figcaption><\/figure>\n\n\n\n<p>GitHub previewed this feature last November, but it has clearly taken a long time to release.<\/p>\n\n\n\n<p>GitHub CEO Thomas Dohmke told that Microsoft, GitHub, and most of his Copilot enterprise customers used the original locking feature, which he also said was a bit of a dull tool. said. \u201cIt gives you little control to decide for yourself whether you actually want to take that code and attribute it back to an open source license. It doesn\u2019t actually let you discover that there might be a library that you could use instead of synthesizing code,\u201d he told me. \u201cIt prevents you from exploring these libraries and submitting pull requests. You might be reproducing everything that already exists in some open source repo.&#8221;<\/p>\n\n\n\n<p>Also, the code browsing feature tends to trigger more often when Copilot doesn&#8217;t have much context to operate. If Copilot can see a lot of context from the existing code you&#8217;re working with, it&#8217;s unlikely to generate hints that match public code. However, if you&#8217;re just starting out, your chances of generating matching code are greatly increased. You can read more detail about this topic from <a href=\"https:\/\/github.blog\/2023-08-03-introducing-code-referencing-for-github-copilot\/\" data-type=\"URL\" data-id=\"https:\/\/github.blog\/2023-08-03-introducing-code-referencing-for-github-copilot\/\" target=\"_blank\" rel=\"noreferrer noopener\">Github blog<\/a>.<\/p>\n\n\n\n<p>Yuuma<\/p>\n<div class='wp_social_bookmarking_light'>\n            <div class=\"wsbl_google_plus_one\"><g:plusone size=\"medium\" annotation=\"none\" href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/13293\" ><\/g:plusone><\/div>\n            <div class=\"wsbl_hatena_button\"><a href=\"\/\/b.hatena.ne.jp\/entry\/https:\/\/www.gigas-jp.com\/appnews\/archives\/13293\" class=\"hatena-bookmark-button\" data-hatena-bookmark-title=\"GitHub Copilot can now show suggestions for match code in a public repository\" data-hatena-bookmark-layout=\"standard\" title=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\"> <img src=\"\/\/b.hatena.ne.jp\/images\/entry-button\/button-only@2x.png\" alt=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\" width=\"20\" height=\"20\" style=\"border: none;\" \/><\/a><script type=\"text\/javascript\" src=\"\/\/b.hatena.ne.jp\/js\/bookmark_button.js\" charset=\"utf-8\" async=\"async\"><\/script><\/div>\n            <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/13293\" data-text=\"GitHub Copilot can now show suggestions for match code in a public repository\" data-via=\"GIGASJAPAN_APPS\" data-lang=\"ja\">Tweet<\/a><\/div>\n            <div class=\"wsbl_facebook_like\"><div id=\"fb-root\"><\/div><fb:like href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/13293\" layout=\"button_count\" action=\"like\" width=\"100\" share=\"false\" show_faces=\"false\" ><\/fb:like><\/div>\n            <div class=\"wsbl_facebook_send\"><div id=\"fb-root\"><\/div><fb:send href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/13293\" colorscheme=\"light\" ><\/fb:send><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>GitHub has released a private beta version of the GitHub Copilot code browsing feature to give developers this [&hellip;]<\/p>\n","protected":false},"author":18,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[96,100],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/13293"}],"collection":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/comments?post=13293"}],"version-history":[{"count":5,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/13293\/revisions"}],"predecessor-version":[{"id":13302,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/13293\/revisions\/13302"}],"wp:attachment":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/media?parent=13293"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/categories?post=13293"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/tags?post=13293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}