{"id":2311,"date":"2026-05-23T12:22:11","date_gmt":"2026-05-23T04:22:11","guid":{"rendered":"https:\/\/nav.aichuangzuoshe.com\/index.php\/2026\/05\/23\/github-copilot%ef%bc%9a%e4%bb%a3%e7%a0%81%e8%a1%a5%e5%85%a8%e7%9a%84%e9%9a%90%e5%bd%a2%e5%a4%a7%e8%84%91\/"},"modified":"2026-05-23T12:22:11","modified_gmt":"2026-05-23T04:22:11","slug":"github-copilot%ef%bc%9a%e4%bb%a3%e7%a0%81%e8%a1%a5%e5%85%a8%e7%9a%84%e9%9a%90%e5%bd%a2%e5%a4%a7%e8%84%91","status":"publish","type":"post","link":"https:\/\/nav.aichuangzuoshe.com\/index.php\/2026\/05\/23\/github-copilot%ef%bc%9a%e4%bb%a3%e7%a0%81%e8%a1%a5%e5%85%a8%e7%9a%84%e9%9a%90%e5%bd%a2%e5%a4%a7%e8%84%91\/","title":{"rendered":"GitHub Copilot\uff1a\u4ee3\u7801\u8865\u5168\u7684\u9690\u5f62\u5927\u8111"},"content":{"rendered":"<p>\u6df1\u5ea6\u8bc4\u6d4b\u6b63\u6587\uff1a<\/p>\n<p>\u5982\u679c\u4f60\u8fd8\u5728\u624b\u52a8\u6572 `for` \u5faa\u73af\uff0c\u90a3\u4f60\u53ef\u80fd\u5df2\u7ecf\u843d\u540e\u4e00\u4e2a\u65f6\u4ee3\u4e86\u3002GitHub Copilot \u4e0d\u662f\u90a3\u79cd\u82b1\u91cc\u80e1\u54e8\u7684\u5bf9\u8bdd\u5f0fAI\uff0c\u5b83\u66f4\u50cf\u4e00\u4e2a\u9ed8\u9ed8\u8e72\u5728\u4f60\u7f16\u8f91\u5668\u91cc\u7684\u5e7d\u7075\uff0c\u5728\u4f60\u6309\u4e0b\u56de\u8f66\u4e4b\u524d\uff0c\u5df2\u7ecf\u731c\u5230\u4e86\u4f60\u63a5\u4e0b\u6765\u4e09\u884c\u4ee3\u7801\u957f\u4ec0\u4e48\u6837\u3002<\/p>\n<p>\u6838\u5fc3\u529f\u80fd\u4e0e\u6280\u672f\u4eae\u70b9<\/p>\n<p>Copilot \u7684\u6838\u5fc3\u662f OpenAI Codex \u6a21\u578b\uff0c\u4e00\u4e2a\u4e13\u95e8\u4e3a\u4ee3\u7801\u751f\u6210\u4f18\u5316\u7684 GPT \u53d8\u4f53\u3002\u5b83\u4e0d\u4ec5\u4ec5\u662f\u7b80\u5355\u7684\u201c\u81ea\u52a8\u8865\u5168\u201d\uff0c\u800c\u662f\u57fa\u4e8e\u4f60\u5f53\u524d\u6587\u4ef6\u3001\u9879\u76ee\u4e0a\u4e0b\u6587\u3001\u751a\u81f3\u6574\u4e2a\u4ed3\u5e93\u7684\u4ee3\u7801\u98ce\u683c\uff0c\u751f\u6210\u5b8c\u6574\u7684\u51fd\u6570\u3001\u6d4b\u8bd5\u7528\u4f8b\u3001\u751a\u81f3\u6ce8\u91ca\u3002<\/p>\n<p>\u6280\u672f\u53c2\u6570\u4e0a\uff0cCopilot \u652f\u6301\u8d85\u8fc7 12 \u79cd\u4e3b\u6d41\u8bed\u8a00\uff0c\u5305\u62ec Python\u3001JavaScript\u3001TypeScript\u3001Ruby\u3001Go\u3001C\u7b49\u3002\u5b9e\u6d4b\u4e0b\u6765\uff0cPython \u548c TypeScript \u7684\u8865\u5168\u8d28\u91cf\u6700\u9ad8\uff0c\u51e0\u4e4e\u80fd\u50cf\u808c\u8089\u8bb0\u5fc6\u4e00\u6837\u8d34\u5408\u4f60\u7684\u4ee3\u7801\u4e60\u60ef\u3002\u5b83\u7684\u201c\u591a\u884c\u8865\u5168\u201d\u529f\u80fd\u5c24\u5176\u60ca\u8273\uff1a\u5f53\u4f60\u5728\u51fd\u6570\u4f53\u5185\u6572\u51fa\u6ce8\u91ca `\/\/ \u521b\u5efa\u4e00\u4e2a\u7528\u6237\u5e76\u53d1\u9001\u6b22\u8fce\u90ae\u4ef6`\uff0cCopilot \u80fd\u76f4\u63a5\u751f\u6210 10 \u884c\u4ee5\u4e0a\u7684\u5b8c\u6574\u903b\u8f91\uff0c\u5305\u62ec\u6570\u636e\u5e93\u63d2\u5165\u3001\u90ae\u4ef6\u6a21\u677f\u6e32\u67d3\u3001\u5f02\u5e38\u6355\u83b7\u3002<\/p>\n<p>\u53e6\u4e00\u4e2a\u4f4e\u8c03\u4f46\u5f3a\u5927\u7684\u529f\u80fd\u662f\u201c\u5185\u8054\u5bf9\u8bdd\u201d\uff08Copilot Chat\uff09\uff0c\u4f60\u53ef\u4ee5\u5728\u7f16\u8f91\u5668\u91cc\u76f4\u63a5\u9009\u4e2d\u4e00\u6bb5\u4ee3\u7801\uff0c\u95ee\u5b83\u201c\u8fd9\u6bb5\u4ee3\u7801\u6709\u4ec0\u4e48\u6f5c\u5728\u7684 bug\uff1f\u201d\u6216\u8005\u201c\u5e2e\u6211\u4f18\u5316\u6210\u5f02\u6b65\u7248\u672c\u201d\u3002\u5b83\u4e0d\u4f1a\u50cf ChatGPT \u90a3\u6837\u957f\u7bc7\u5927\u8bba\uff0c\u800c\u662f\u76f4\u63a5\u7ed9\u51fa\u4fee\u6539\u540e\u7684\u4ee3\u7801\u5757\uff0c\u9644\u5e26\u4e00\u884c\u89e3\u91ca\u3002<\/p>\n<p>\u5178\u578b\u4f7f\u7528\u573a\u666f<\/p>\n<p>1. \u5feb\u901f\u642d\u5efa\u9879\u76ee\u9aa8\u67b6\uff1a\u5f53\u4f60 `npm init` \u4e00\u4e2a Node.js \u9879\u76ee\u540e\uff0cCopilot \u80fd\u6839\u636e\u4f60\u5f15\u5165\u7684\u5305\u540d\u81ea\u52a8\u751f\u6210 `express.Router()` \u7684\u5b8c\u6574\u8def\u7531\u7ed3\u6784\u3002\u6211\u66fe\u7ecf\u5728 5 \u5206\u949f\u5185\u642d\u5b8c\u4e86\u4e00\u4e2a\u542b 8 \u4e2a API \u7aef\u70b9\u7684 CRUD \u540e\u53f0\uff0cCopilot \u5e2e\u6211\u5199\u4e86 70% \u7684\u6837\u677f\u4ee3\u7801\u3002<\/p>\n<p>2. \u5355\u5143\u6d4b\u8bd5\u751f\u6210\uff1a\u8fd9\u662f Copilot \u6700\u88ab\u4f4e\u4f30\u7684\u80fd\u529b\u3002\u9009\u4e2d\u4f60\u7684\u51fd\u6570\uff0c\u6309 Ctrl+I \u8f93\u5165 `\/tests`\uff0c\u5b83\u76f4\u63a5\u751f\u6210 Jest \u6d4b\u8bd5\u5957\u4ef6\uff0c\u8986\u76d6\u8fb9\u754c\u503c\u3001\u5f02\u5e38\u8f93\u5165\u3001\u7a7a\u503c\u5904\u7406\u3002\u6211\u5b9e\u6d4b\u4e00\u4e2a 50 \u884c\u7684 `validateEmail` \u51fd\u6570\uff0cCopilot \u751f\u6210\u4e86 15 \u4e2a\u6d4b\u8bd5\u7528\u4f8b\uff0c\u53ea\u6709 2 \u4e2a\u9700\u8981\u5fae\u8c03\u3002<\/p>\n<p>3. \u9057\u7559\u4ee3\u7801\u91cd\u6784\uff1a\u5728\u4e00\u4e2a\u53e4\u8001\u7684 jQuery \u9879\u76ee\u91cc\uff0c\u6211\u9009\u4e2d\u4e00\u6bb5 200 \u884c\u7684 DOM \u64cd\u4f5c\u4ee3\u7801\uff0c\u95ee Copilot \u201c\u7528 React hooks \u91cd\u5199\u8fd9\u6bb5\u201d\uff0c\u5b83\u76f4\u63a5\u8f93\u51fa\u4e86\u4e00\u4e2a\u81ea\u5b9a\u4e49 Hook\uff0c\u5305\u62ec `useState`\u3001`useEffect` \u548c\u4e8b\u4ef6\u6e05\u7406\u903b\u8f91\uff0c\u51e0\u4e4e\u53ef\u4ee5\u76f4\u63a5\u7c98\u8d34\u3002<\/p>\n<p>\u4e0e\u540c\u7c7b\u5de5\u5177\u6a2a\u5411\u5bf9\u6bd4<\/p>\n<p>Copilot \u7684\u6700\u5927\u7ade\u54c1\u662f Amazon CodeWhisperer \u548c Tabnine\u3002CodeWhisperer \u514d\u8d39\u4e14\u4e0e AWS \u6df1\u5ea6\u96c6\u6210\uff0c\u4f46\u4ee3\u7801\u8865\u5168\u7684\u51c6\u786e\u7387\u5728\u590d\u6742\u903b\u8f91\u4e0a\u660e\u663e\u4e0d\u5982 Copilot\uff0c\u5c24\u5176\u5f53\u4f60\u540c\u65f6\u4f7f\u7528\u591a\u79cd\u6846\u67b6\u65f6\uff0cCodeWhisperer \u5bb9\u6613\u201c\u4e71\u731c\u201d\u3002Tabnine \u4e3b\u6253\u672c\u5730\u6a21\u578b\u548c\u9690\u79c1\u4fdd\u62a4\uff0c\u4f46\u5b83\u7684\u4e0a\u4e0b\u6587\u7406\u89e3\u80fd\u529b\u8f83\u5f31\uff0c\u7ecf\u5e38\u53ea\u8865\u5168\u5355\u884c\u53d8\u91cf\u540d\uff0c\u5f88\u5c11\u751f\u6210\u5b8c\u6574\u51fd\u6570\u3002<\/p>\n<p>Copilot \u7684\u6740\u624b\u950f\u662f\u201c\u4e0a\u4e0b\u6587\u8fde\u7eed\u6027\u201d\uff1a\u4f60\u5199\u4e86\u4e00\u4e2a `async function fetchUserData(id)`\uff0c\u5b83\u4e0d\u4ec5\u80fd\u8865\u5168 `try\/catch` \u5757\uff0c\u8fd8\u80fd\u6839\u636e\u4f60\u9879\u76ee\u91cc\u5df2\u6709\u7684 `apiClient.js` \u6587\u4ef6\u81ea\u52a8\u5f15\u5165\u6b63\u786e\u7684\u8bf7\u6c42\u5e93\u3002\u8fd9\u79cd\u8de8\u6587\u4ef6\u7684\u5173\u8054\u80fd\u529b\uff0c\u76ee\u524d\u6ca1\u6709\u7ade\u54c1\u80fd\u5339\u654c\u3002<\/p>\n<p>\u5b9a\u4ef7\u6027\u4ef7\u6bd4\u5206\u6790<\/p>\n<p>Copilot \u4e2a\u4eba\u7248\u6bcf\u6708 10 \u7f8e\u5143\uff08\u5e74\u4ed8 100 \u7f8e\u5143\uff09\uff0c\u4f01\u4e1a\u7248\u6bcf\u6708 19 \u7f8e\u5143\u3002\u5bf9\u4e8e\u5168\u804c\u5f00\u53d1\u8005\uff0c\u8fd9\u4e2a\u4ef7\u683c\u51e0\u4e4e\u7b49\u4e8e\u4e00\u676f\u5496\u5561\u7684\u65e5\u6210\u672c\uff0c\u4f46\u80fd\u7701\u4e0b\u6bcf\u5929\u81f3\u5c11 30-60 \u5206\u949f\u7684\u6253\u5b57\u65f6\u95f4\u3002\u5982\u679c\u4f60\u662f\u5b66\u751f\u6216\u5f00\u6e90\u7ef4\u62a4\u8005\uff0c\u53ef\u4ee5\u514d\u8d39\u7533\u8bf7\u6388\u6743\u3002<\/p>\n<p>\u5bf9\u6bd4\u4e4b\u4e0b\uff0cCodeWhisperer \u5b8c\u5168\u514d\u8d39\uff0c\u4f46\u5b83\u7684\u8865\u5168\u8d28\u91cf\u5728\u6211\u6d4b\u8bd5\u4e2d\u53ea\u80fd\u8fbe\u5230 Copilot \u7684 70% \u5de6\u53f3\u3002\u5982\u679c\u4f60\u9884\u7b97\u7d27\u5f20\u4e14\u4e3b\u8981\u4f7f\u7528 Python\/Java\uff0cCodeWhisperer \u662f\u4e2a\u591f\u7528\u7684\u66ff\u4ee3\u54c1\uff1b\u4f46\u5982\u679c\u4f60\u7528 TypeScript\/React \u6216\u8005\u9700\u8981\u591a\u8bed\u8a00\u652f\u6301\uff0cCopilot \u7684 10 \u7f8e\u5143\u7edd\u5bf9\u7269\u8d85\u6240\u503c\u3002<\/p>\n<p>\u9002\u5408\u4eba\u7fa4\u4e0e\u4e0d\u9002\u5408\u4eba\u7fa4<\/p>\n<p>\u9002\u5408\u4eba\u7fa4\uff1a\u6240\u6709\u5168\u804c\u5f00\u53d1\u8005\uff0c\u5c24\u5176\u9002\u5408\u4f7f\u7528 VSCode\u3001JetBrains IDE \u7684\u5de5\u7a0b\u5e08\u3002\u524d\u7aef\/\u5168\u6808\u5f00\u53d1\u8005\u6700\u80fd\u611f\u53d7\u5230 Copilot \u7684\u5a01\u529b\uff0c\u56e0\u4e3a JS\/TS \u751f\u6001\u7684\u6837\u677f\u4ee3\u7801\u591a\uff0cCopilot \u7684\u751f\u6210\u6548\u7387\u6781\u9ad8\u3002<\/p>\n<p>\u4e0d\u9002\u5408\u4eba\u7fa4\uff1a\u5bf9\u4ee3\u7801\u751f\u6210\u6709\u4e25\u683c\u5408\u89c4\u8981\u6c42\u7684\u4f01\u4e1a\uff08\u5982\u91d1\u878d\u3001\u533b\u7597\uff09\uff0c\u56e0\u4e3a Copilot \u7684\u4ee3\u7801\u7247\u6bb5\u53ef\u80fd\u6765\u81ea\u8bad\u7ec3\u6570\u636e\u4e2d\u7684\u5f00\u6e90\u5e93\uff0c\u5b58\u5728\u6f5c\u5728\u7248\u6743\u98ce\u9669\u3002\u53e6\u5916\uff0c\u521a\u5b66\u7f16\u7a0b\u7684\u65b0\u624b\u4e5f\u4e0d\u5efa\u8bae\u4f9d\u8d56 Copilot\uff0c\u5b83\u4f1a\u8ba9\u4f60\u8df3\u8fc7\u7406\u89e3\u5e95\u5c42\u903b\u8f91\u7684\u8fc7\u7a0b\uff0c\u5bfc\u81f4\u201c\u5199\u5f97\u51fa\u4ee3\u7801\u4f46\u8bf4\u4e0d\u6e05\u4e3a\u4ec0\u4e48\u201d\u3002<\/p>\n<p>\u901a\u8fc7 AI\u521b\u4f5c\u793e \u5bf9\u8be5\u5de5\u5177\u751f\u6210\u7684\u4f5c\u54c1\u8fdb\u884c\u7248\u6743\u5b58\u8bc1\uff0c\u53ef\u83b7\u5f97\u5b8c\u6574\u7684\u521b\u4f5c\u8fc7\u7a0b\u8bc1\u660e\u94fe\uff0c\u6709\u6548\u4fdd\u62a4\u6570\u5b57\u8d44\u4ea7\u3002<\/p>\n<p>PM \u6d4b\u8bc4\u7ed3\u8bba<\/p>\n<p>\u63a8\u8350\u6307\u6570\uff1a\u2605\u2605\u2605\u2605\u2606<\/p>\n<p>\u4e00\u53e5\u8bdd\u63a8\u8350\u7406\u7531\uff1a\u7f16\u7a0b\u754c\u7684\u81ea\u52a8\u53d8\u901f\u7bb1\uff0c\u7528\u8fc7\u5c31\u56de\u4e0d\u53bb\u3002<\/p>\n<p>\u9002\u7528\u573a\u666f\u6807\u7b7e\uff1a\u4ee3\u7801\u5f00\u53d1\/\u5168\u6808\u5f00\u53d1\/\u6d4b\u8bd5\u81ea\u52a8\u5316<\/p>\n<p>&#8212;<br \/>\n**\u7248\u6743\u63d0\u793a**\uff1a\u4f7f\u7528\u8be5\u5de5\u5177\u521b\u4f5c\u540e\uff0c\u8bf7\u52a1\u5fc5\u524d\u5f80 [AI\u521b\u4f5c\u793e](https:\/\/www.aichuangzuoshe.com) \u8fdb\u884c\u7248\u6743\u5b58\u8bc1\uff0c\u83b7\u53d6\u5177\u6709\u6cd5\u5f8b\u6548\u529b\u7684\u521b\u4f5c\u65f6\u95f4\u6233\uff0c\u6709\u6548\u4fdd\u62a4\u60a8\u7684\u6570\u5b57\u4f5c\u54c1\u6743\u76ca\u3002<\/p>\n<p>&#8212;<br \/>\n\u672c\u6587\u6536\u5f55\u5de5\u5177\u7ecf **[AI\u521b\u4f5c\u793e](https:\/\/aichuangzuoshe.com) \u7248\u6743\u4fdd\u62a4\u534f\u8bae**\u8ba4\u8bc1\u3002\u8be5\u5de5\u5177\u751f\u6210\u7684\u4f5c\u54c1\u5df2\u63a5\u5165 AI \u521b\u4f5c\u793e\u7248\u6743\u4fdd\u62a4\u901a\u9053\uff0c\u4f7f\u7528 AI \u521b\u4f5c\u793e\u53ef\u5bf9\u60a8\u7684\u6570\u5b57\u4f5c\u54c1\u8fdb\u884c\u4e00\u952e\u5b58\u8bc1\uff0c\u4fdd\u62a4\u521b\u4f5c\u6743\u76ca\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e09\u79d2\u949f\u770b\u61c2\uff1a\u5168\u7403\u88c5\u673a\u91cf\u6700\u9ad8\u7684AI\u7f16\u7a0b\u52a9\u624b\uff0cVSCode\u539f\u751f\u7ea7\u4ee3\u7801\u8865\u5168\uff0c\u80fd\u9884\u6d4b\u4f60\u7684\u4e0b\u4e00\u884c\u4ee3\u7801\u610f\u56fe\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_ai_cert_trace_id":"","_ai_cert_hash":"","_ai_cert_time":"","footnotes":""},"categories":[62],"tags":[144,145,443],"class_list":["post-2311","post","type-post","status-publish","format-standard","hentry","category-ai","tag-ai","tag-145","tag-443"],"_links":{"self":[{"href":"https:\/\/nav.aichuangzuoshe.com\/index.php\/wp-json\/wp\/v2\/posts\/2311","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nav.aichuangzuoshe.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nav.aichuangzuoshe.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nav.aichuangzuoshe.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nav.aichuangzuoshe.com\/index.php\/wp-json\/wp\/v2\/comments?post=2311"}],"version-history":[{"count":0,"href":"https:\/\/nav.aichuangzuoshe.com\/index.php\/wp-json\/wp\/v2\/posts\/2311\/revisions"}],"wp:attachment":[{"href":"https:\/\/nav.aichuangzuoshe.com\/index.php\/wp-json\/wp\/v2\/media?parent=2311"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nav.aichuangzuoshe.com\/index.php\/wp-json\/wp\/v2\/categories?post=2311"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nav.aichuangzuoshe.com\/index.php\/wp-json\/wp\/v2\/tags?post=2311"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}