{"id":183,"date":"2024-12-30T15:10:58","date_gmt":"2024-12-30T07:10:58","guid":{"rendered":"https:\/\/www.hmpround.net\/?p=183"},"modified":"2024-12-30T15:10:58","modified_gmt":"2024-12-30T07:10:58","slug":"github-copilot-%e5%85%8d%e8%b4%b9%e4%ba%86%ef%bc%81%e5%b0%8f%e7%99%bd%e7%a7%92%e5%8f%98%e4%bb%a3%e7%a0%81%e5%a4%a7%e7%a5%9e","status":"publish","type":"post","link":"https:\/\/www.hmpround.net\/?p=183","title":{"rendered":"GitHub Copilot \u514d\u8d39\u4e86\uff01\u5c0f\u767d\u79d2\u53d8\u4ee3\u7801\u5927\u795e"},"content":{"rendered":"<p>\u4ece\u73b0\u5728\u5f00\u59cb\uff0cGitHub Copilot \u7684\u514d\u8d39\u7248\u8ba1\u5212\u5c06\u9762\u5411\u6240\u6709\u7528\u6237\u5f00\u653e\u3002\u53ea\u8981\u4f60\u62e5\u6709\u4e00\u4e2a GitHub \u8d26\u53f7\uff0c\u5c31\u80fd\u591f\u5728\u300cVS Code\u300d\u4e2d\u514d\u8d39\u4f7f\u7528\u8fd9\u4e00\u5f3a\u5927\u7684 AI \u8f85\u52a9\u6269\u5c55\u3002\u5177\u4f53\u7684\u514d\u8d39\u914d\u989d\u5982\u4e0b\uff1a<\/p>\n<ul>\n<li><strong>\u6bcf\u6708 2000 \u6b21\u4ee3\u7801\u8865\u5168<\/strong>\uff1a\u8fd9\u4e2a\u989d\u5ea6\u5bf9\u666e\u901a\u4e2a\u4eba\u5f00\u53d1\u8005\u6765\u8bf4\uff0c\u5e94\u8be5\u662f\u5c06\u5c06\u591f\u7528\u7684\u6837\u5b50\u3002\u5e94\u4ed8\u4e2a\u5927\u591a\u6570\u4e2d\u5c0f\u578b\u9879\u76ee\u3001\u5b66\u4e60\u90fd\u6ca1\u95ee\u9898\uff1b\u53ef\u80fd\u5bf9\u91cd\u5ea6\u7528\u6237\u8fd8\u662f\u4e0d\u592a\u591f\uff0c\u4f46\u67b6\u4e0d\u4f4f\u5b83\u514d\u8d39\u554a\u3002<\/li>\n<li><strong>\u6bcf\u6708 50 \u6b21\u804a\u5929\u8bf7\u6c42<\/strong>\uff1a\u9664\u4e86\u4ee3\u7801\u8865\u5168\uff0c\u4f60\u8fd8\u53ef\u4ee5\u548c Copilot \u5185\u7f6e\u7684 AI \u5927\u6a21\u578b\u8fdb\u884c\u5bf9\u8bdd\uff0c\u5b83\u53ef\u4ee5\u5e2e\u4f60\u89e3\u91ca\u4ee3\u7801\u3001\u89e3\u51b3\u95ee\u9898\u3001\u91cd\u6784\u4ee3\u7801\u7b49\u7b49\u3002<\/li>\n<\/ul>\n<h3><strong>Copilot \u7684\u4f18\u52bf\u3001\u4eae\u70b9\u548c\u7279\u70b9<\/strong><\/h3>\n<p>Github Copilot \u7684\u4f18\u70b9\u5f53\u7136\u4e0d\u4ec5\u4ec5\u662f\u514d\u8d39\u8fd9\u4e48\u7b80\u5355\uff0c\u5b83\u8fd8\u6709\u5f88\u591a\u72ec\u7279\u7684\u4eae\u70b9\uff1a<\/p>\n<ul>\n<li><strong>\u5f3a\u5927\u7684\u4ee3\u7801\u8865\u5168\u80fd\u529b<\/strong>\uff1aCopilot \u7684\u4ee3\u7801\u8865\u5168\u80fd\u529b\u975e\u5e38\u5f3a\u5927\uff0c\u4e0d\u4ec5\u53ef\u4ee5\u8865\u5168\u5355\u884c\u4ee3\u7801\uff0c\u8fd8\u80fd\u751f\u6210\u6574\u4e2a\u51fd\u6570\u6216\u4ee3\u7801\u5757\uff0c\u5927\u5927\u63d0\u9ad8\u4f60\u7684\u7f16\u7a0b\u5199\u4ee3\u7801\u6548\u7387\u3002<\/li>\n<li><strong>\u667a\u80fd\u7684\u4ee3\u7801\u5efa\u8bae<\/strong>\uff1aCopilot \u4f1a\u6839\u636e\u4e0a\u4e0b\u6587\u63d0\u4f9b\u6700\u4f73\u5b9e\u8df5\u548c\u66ff\u4ee3\u89e3\u51b3\u65b9\u6848\uff0c\u5e2e\u52a9\u4f60\u7f16\u5199\u66f4\u4f18\u8d28\u7684\u4ee3\u7801\u3002<\/li>\n<li><strong>\u652f\u6301\u591a\u8bed\u8a00<\/strong>\uff1aCopilot \u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\uff0c\u5982\u00a0Python\u3001JavaScript\u3001TypeScript\u3001Go\u3001C++\u3001Ruby\u3001Java\u3001HTML\u3001CSS \u7b49\uff0c\u51e0\u4e4e\u8986\u76d6\u4e86\u6240\u6709\u5e38\u89c1\u7684\u5f00\u53d1\u8bed\u8a00\u3002<\/li>\n<li><strong>\u81ea\u7136\u8bed\u8a00\u8f6c\u4ee3\u7801<\/strong>\uff1a\u4f60\u53ef\u4ee5\u901a\u8fc7\u7b80\u5355\u7684\u6ce8\u91ca\u63cf\u8ff0\u4f60\u7684\u610f\u56fe\uff0cCopilot \u5c31\u80fd\u5e2e\u4f60\u751f\u6210\u76f8\u5e94\u7684\u4ee3\u7801\uff0c\u7b80\u76f4\u592a\u795e\u5947\u4e86\u3002<\/li>\n<li><strong>\u591a\u6587\u4ef6\u7f16\u8f91<\/strong>\uff1a \u901a\u8fc7 Copilot Edits \u529f\u80fd\uff0c\u4f60\u53ef\u4ee5\u8de8\u591a\u4e2a\u6587\u4ef6\u8fdb\u884c\u4fee\u6539\uff0c\u751a\u81f3\u521b\u5efa\u65b0\u6587\u4ef6\u3002<\/li>\n<li><strong>\u591a\u6a21\u578b\u9009\u62e9<\/strong>\uff1a \u4f60\u53ef\u4ee5\u6839\u636e\u4efb\u52a1\u9700\u6c42\u81ea\u7531\u5207\u6362\u4e0d\u540c\u7684 AI \u6a21\u578b\uff0c\u5982 GPT-4o \u6216 Claude 3.5 Sonnet\u3002<\/li>\n<li><strong>\u81ea\u5b9a\u4e49\u6307\u4ee4<\/strong>\uff1a \u4f60\u53ef\u4ee5\u544a\u8bc9 Copilot \u4f60\u5e0c\u671b\u4ee3\u7801\u4ee5\u4f55\u79cd\u65b9\u5f0f\u751f\u6210\uff0c\u8ba9\u5b83\u66f4\u7b26\u5408\u4f60\u7684\u7f16\u7801\u4e60\u60ef\u3002<\/li>\n<li><strong>\u5168\u9879\u76ee\u4e0a\u4e0b\u6587\u611f\u77e5<\/strong>\uff1a Copilot \u80fd\u591f\u7406\u89e3\u6574\u4e2a\u4ee3\u7801\u5e93\u7684\u4e0a\u4e0b\u6587\uff0c\u63d0\u4f9b\u66f4\u7cbe\u51c6\u7684\u5efa\u8bae\u3002<\/li>\n<li><strong>\u667a\u80fd\u547d\u540d<\/strong>\uff1a \u5f53\u4f60\u9700\u8981\u91cd\u547d\u540d\u53d8\u91cf\u65f6\uff0cCopilot \u4f1a\u6839\u636e\u4ee3\u7801\u7684\u5b9e\u73b0\u65b9\u5f0f\u548c\u4f7f\u7528\u573a\u666f\u7ed9\u51fa\u667a\u80fd\u7684\u547d\u540d\u5efa\u8bae\u3002<\/li>\n<li><strong>\u8bed\u97f3\u8f93\u5165<\/strong>\uff1a \u901a\u8fc7\u8bed\u97f3\u8f93\u5165\uff0c\u4f60\u53ef\u4ee5\u76f4\u63a5\u548c Copilot \u8fdb\u884c\u4ea4\u6d41\uff0c\u8ba9\u4f60\u7684\u601d\u7ef4\u6d41\u52a8\u8d77\u6765\u3002<\/li>\n<li><strong>\u7ec8\u7aef\u4e13\u5bb6<\/strong>\uff1a \u4f60\u53ef\u4ee5\u5728\u7ec8\u7aef\u4e2d\u4f7f\u7528 Copilot\uff0c\u8ba9\u5b83\u5e2e\u4f60\u6267\u884c\u547d\u4ee4\uff0c\u751a\u81f3\u4fee\u590d\u9519\u8bef\u7684 shell \u547d\u4ee4\u3002<\/li>\n<li><strong>\u81ea\u52a8\u751f\u6210 Commit \u4fe1\u606f<\/strong>\uff1a Copilot \u4f1a\u6839\u636e\u4f60\u7684\u4fee\u6539\u5185\u5bb9\u81ea\u52a8\u751f\u6210 commit \u4fe1\u606f\uff0c\u8ba9\u4f60\u4e0d\u518d\u4e3a commit \u6d88\u606f\u70e6\u607c\u3002<\/li>\n<li><strong>\u4e0e VS Code \u9ad8\u5ea6\u96c6\u6210<\/strong>\uff1a GitHub Copilot \u6df1\u5ea6\u96c6\u6210\u5728\u00a0VS Code\u00a0\u4e2d\uff0c\u4f7f\u7528\u8d77\u6765\u975e\u5e38\u6d41\u7545\uff0c\u4f60\u4e0d\u7528\u79bb\u5f00 VS Code \u5c31\u53ef\u4ee5\u4eab\u53d7 AI \u4ee3\u7801\u52a9\u624b\u5e26\u6765\u7684\u4fbf\u5229\u3002<\/li>\n<li><strong>\u53ef\u6269\u5c55\u6027\u5f3a<\/strong>\uff1a \u4efb\u4f55 VS Code \u6269\u5c55\u90fd\u53ef\u4ee5\u76f4\u63a5\u4e0e GitHub Copilot API \u96c6\u6210\uff0c\u63d0\u4f9b\u5b9a\u5236\u5316\u7684 AI \u4f53\u9a8c\u3002<\/li>\n<li><strong>\u6301\u7eed\u8fdb\u5316<\/strong>\uff1a GitHub Copilot \u8fd8\u5728\u4e0d\u65ad\u8fdb\u5316\uff0c\u672a\u6765\u5c06\u6709\u66f4\u591a\u4ee4\u4eba\u5174\u594b\u7684\u529f\u80fd\u52a0\u5165\uff0c\u6bd4\u5982 Vision Copilot \u9884\u89c8\u6269\u5c55\uff0c\u53ef\u4ee5\u57fa\u4e8e\u622a\u56fe\u6216\u6807\u8bb0\u751f\u6210\u754c\u9762\u3002<\/li>\n<\/ul>\n<p>\u4e0b\u9762\u662f\u8be6\u7ec6\u7684\u6b65\u9aa4\uff1a<\/p>\n<ol>\n<li><strong>\u5b89\u88c5 VS Code<\/strong>\uff1a \u9996\u5148\uff0c\u4f60\u9700\u8981\u4e0b\u8f7d\u5e76\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684 Visual Studio Code\u3002<\/li>\n<li><strong>\u5b89\u88c5 Copilot \u6269\u5c55<\/strong>\uff1a \u5728 VS Code \u4e2d\u641c\u7d22\uff0c\u6216\u524d\u5f80\u8fd9\u91cc\u5b89\u88c5\u201cGitHub Copilot\u201d\u6269\u5c55\uff08GitHub Copilot Chat \u804a\u5929\u6269\u5c55\u4f1a\u81ea\u52a8\u5b89\u88c5\uff09<\/li>\n<li><strong>\u767b\u5f55 GitHub \u8d26\u53f7<\/strong>\uff1a \u5b89\u88c5\u5b8c\u6269\u5c55\u540e\uff0c\u4f7f\u7528\u4f60\u7684 GitHub \u8d26\u53f7\u767b\u5f55\u3002<\/li>\n<li><strong>\u6fc0\u6d3b\u514d\u8d39\u8ba1\u5212<\/strong>\uff1a \u767b\u5f55\u540e\uff0c\u6309\u7167\u63d0\u793a\u6fc0\u6d3b Copilot \u514d\u8d39\u8ba1\u5212\u3002<\/li>\n<li><strong>\u5f00\u59cb\u4f7f\u7528<\/strong>\uff1a \u4f60\u53ef\u4ee5\u5728 VS Code \u4e2d\u76f4\u63a5\u5f00\u59cb\u4f7f\u7528 Copilot \u7684\u4ee3\u7801\u8865\u5168\u3001\u804a\u5929\u7b49\u529f\u80fd\u3002\u4f60\u53ef\u4ee5\u5728\u7f16\u8f91\u5668\u4e2d\u8f93\u5165\u4ee3\u7801\u65f6\uff0cCopilot\u4f1a\u81ea\u52a8\u63d0\u4f9b\u5efa\u8bae\uff0c\u6309\u4e0b\u00a0<code>Tab<\/code>\u00a0\u952e\u63a5\u53d7\u5efa\u8bae\uff0c\u6216\u8005\u4f7f\u7528<code>\u65b9\u5411\u952e<\/code>\u9009\u62e9\u591a\u4e2a\u5efa\u8bae\u3002\u4f60\u4e5f\u53ef\u4ee5\u4f7f\u7528\u5feb\u6377\u952e ( Win\/Linux\uff1a<code>Ctrl+I<\/code>\uff0cMac\uff1a<code>\u2318I<\/code>\u00a0) \u542f\u52a8\u5185\u8054\u804a\u5929\u3002<\/li>\n<li><strong>\u5229\u7528\u591a\u6587\u4ef6\u7f16\u8f91\u529f\u80fd<\/strong>\uff1a \u4f7f\u7528 (Win\/Linux\uff1a<code>Shift+Ctrl+I<\/code>\uff0cMac\uff1a<code>\u21e7\u2318I<\/code>\u00a0) \u542f\u52a8\u591a\u6587\u4ef6\u7f16\u8f91\u3002<\/li>\n<li><strong>\u5584\u7528 Copilot Chat \u804a\u5929<\/strong>\uff1a \u4f7f\u7528 (Win\/Linux\uff1a<code>Ctrl+Alt+I<\/code>\uff0cMac\uff1a<code>\u2303\u2318I<\/code>\u00a0) \u6253\u5f00\u804a\u5929\u89c6\u56fe\uff0c\u4f60\u53ef\u4ee5\u8be2\u95ee\u7f16\u7a0b\u6982\u5ff5\u3001\u4ee3\u7801\u5b9e\u73b0\u548c\u6700\u4f73\u5b9e\u8df5\u7b49\u95ee\u9898\u3002<\/li>\n<li><strong>\u63a2\u7d22 Copilot \u7684\u5404\u79cd\u529f\u80fd<\/strong>\uff1a \u4f60\u53ef\u4ee5\u4f7f\u7528\u00a0<code>\/doc<\/code>\u00a0\u751f\u6210\u6587\u6863\u3001<code>\/fix<\/code>\u00a0\u4fee\u590d\u95ee\u9898\u3001<code>\/tests<\/code>\u00a0\u751f\u6210\u6d4b\u8bd5\u7b49\u7b49\u3002<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u4ece\u73b0\u5728\u5f00\u59cb\uff0cGitHub Copilot \u7684\u514d\u8d39\u7248\u8ba1\u5212\u5c06\u9762\u5411\u6240\u6709\u7528\u6237\u5f00\u653e\u3002\u53ea\u8981\u4f60\u62e5\u6709\u4e00\u4e2a GitHub \u8d26\u53f7\uff0c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-183","post","type-post","status-publish","format-standard","hentry","category-desktop"],"_links":{"self":[{"href":"https:\/\/www.hmpround.net\/index.php?rest_route=\/wp\/v2\/posts\/183","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hmpround.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hmpround.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hmpround.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hmpround.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=183"}],"version-history":[{"count":2,"href":"https:\/\/www.hmpround.net\/index.php?rest_route=\/wp\/v2\/posts\/183\/revisions"}],"predecessor-version":[{"id":185,"href":"https:\/\/www.hmpround.net\/index.php?rest_route=\/wp\/v2\/posts\/183\/revisions\/185"}],"wp:attachment":[{"href":"https:\/\/www.hmpround.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=183"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hmpround.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=183"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hmpround.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=183"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}