{"id":22766,"date":"2026-06-10T13:54:54","date_gmt":"2026-06-10T05:54:54","guid":{"rendered":"https:\/\/ab123.xyz\/?p=22766"},"modified":"2026-06-10T13:54:54","modified_gmt":"2026-06-10T05:54:54","slug":"github-copilot-custom-prompts-%e6%b7%b1%e5%ba%a6%e8%a7%a3%e6%9e%90%ef%bc%9a%e5%a6%82%e4%bd%95%e5%88%a9%e7%94%a8%e5%ae%9a%e5%88%b6%e6%8f%90%e7%a4%ba%e8%af%8d%e6%8f%90%e5%8d%87%e4%bb%a3%e7%a0%81","status":"publish","type":"post","link":"https:\/\/ab123.xyz\/?p=22766","title":{"rendered":"GitHub Copilot Custom Prompts \u6df1\u5ea6\u89e3\u6790\uff1a\u5982\u4f55\u5229\u7528\u5b9a\u5236\u63d0\u793a\u8bcd\u63d0\u5347\u4ee3\u7801\u751f\u6210\u6548\u7387"},"content":{"rendered":"<p>\u5728\u4eba\u5de5\u667a\u80fd\u8f85\u52a9\u7f16\u7a0b\u9886\u57df\uff0c<strong>GitHub Copilot Custom Prompts<\/strong> \u6b63\u6210\u4e3a\u5f00\u53d1\u8005\u63d0\u5347\u751f\u4ea7\u529b\u7684\u5173\u952e\u5de5\u5177\u3002\u901a\u8fc7\u5b9a\u5236\u63d0\u793a\u8bcd\uff08Custom Prompts\uff09\uff0c\u7528\u6237\u53ef\u4ee5\u7cbe\u786e\u63a7\u5236AI\u751f\u6210\u7684\u4ee3\u7801\u98ce\u683c\u3001\u903b\u8f91\u7ed3\u6784\u751a\u81f3\u6ce8\u91ca\u89c4\u8303\u3002\u672c\u6587\u5c06\u5168\u9762\u4ecb\u7ecd\u8be5\u529f\u80fd\u7684\u5b9a\u4e49\u3001\u6838\u5fc3\u4f18\u52bf\u53ca\u5b9e\u9645\u5e94\u7528\u65b9\u6cd5\uff0c\u5e2e\u52a9\u60a8\u5145\u5206\u53d1\u6325\u5176\u6f5c\u529b\u3002<\/p>\n<p><a href=\"https:\/\/github.com\/features\/copilot\" target=\"_blank\">\u5b98\u65b9\u7f51\u7ad9<\/a><\/p>\n<h2>\u4ec0\u4e48\u662f GitHub Copilot Custom Prompts\uff1f<\/h2>\n<p>GitHub Copilot \u662f GitHub \u63a8\u51fa\u7684AI\u7f16\u7a0b\u52a9\u624b\uff0c\u800c <em>Custom Prompts<\/em> \u662f\u5176\u9ad8\u7ea7\u529f\u80fd\uff0c\u5141\u8bb8\u7528\u6237\u5b9a\u4e49\u81ea\u5b9a\u4e49\u89c4\u5219\u6216\u4e0a\u4e0b\u6587\u3002\u4f8b\u5982\uff0c\u60a8\u53ef\u4ee5\u8981\u6c42Copilot\u201c\u4f7f\u7528Python\u7f16\u5199\u4e00\u4e2a\u7b26\u5408PEP8\u89c4\u8303\u7684\u51fd\u6570\u201d\uff0c\u6216\u201c\u751f\u6210\u5e26\u6709\u4e2d\u6587\u6ce8\u91ca\u7684REST API\u4ee3\u7801\u201d\u3002\u8fd9\u4e9b\u63d0\u793a\u8bcd\u53ef\u4ee5\u4fdd\u5b58\u4e3a\u914d\u7f6e\u6587\u4ef6\uff0c\u5e76\u5728\u4e0d\u540c\u9879\u76ee\u4e2d\u590d\u7528\u3002<\/p>\n<h3>\u6838\u5fc3\u673a\u5236<\/h3>\n<p>Custom Prompts \u901a\u8fc7 <code>.github\/copilot-instructions.md<\/code> \u6587\u4ef6\u751f\u6548\uff0c\u5f00\u53d1\u8005\u53ea\u9700\u5728\u4ed3\u5e93\u6839\u76ee\u5f55\u521b\u5efa\u8be5\u6587\u4ef6\uff0c\u5199\u5165\u81ea\u7136\u8bed\u8a00\u6307\u4ee4\uff0cCopilot \u4fbf\u4f1a\u81ea\u52a8\u53c2\u8003\u3002\u6307\u4ee4\u652f\u6301 Markdown \u683c\u5f0f\uff0c\u53ef\u5305\u542b\u4ee3\u7801\u793a\u4f8b\u3001\u6846\u67b6\u504f\u597d\u3001\u547d\u540d\u7ea6\u5b9a\u7b49\u3002<\/p>\n<h2>\u529f\u80fd\u4e0e\u4f18\u52bf\uff1a\u4e3a\u4f55\u503c\u5f97\u6295\u5165\u65f6\u95f4\uff1f<\/h2>\n<ul>\n<li><strong>\u7cbe\u51c6\u63a7\u5236\u8f93\u51fa<\/strong>\uff1a\u907f\u514dAI\u751f\u6210\u4e0d\u7b26\u5408\u56e2\u961f\u89c4\u8303\u7684\u4ee3\u7801\uff0c\u51cf\u5c11\u540e\u671f\u4fee\u6539\u6210\u672c\u3002<\/li>\n<li><strong>\u63d0\u5347\u534f\u4f5c\u6548\u7387<\/strong>\uff1a\u56e2\u961f\u53ef\u5171\u4eab\u7edf\u4e00\u63d0\u793a\u8bcd\uff0c\u786e\u4fdd\u4ee3\u7801\u98ce\u683c\u4e00\u81f4\u3002<\/li>\n<li><strong>\u51cf\u5c11\u91cd\u590d\u52b3\u52a8<\/strong>\uff1a\u9488\u5bf9\u5e38\u89c1\u4efb\u52a1\uff08\u5982\u7f16\u5199\u5355\u5143\u6d4b\u8bd5\u3001\u6570\u636e\u6e05\u6d17\u811a\u672c\uff09\u9884\u8bbe\u6a21\u677f\uff0c\u4e00\u952e\u751f\u6210\u3002<\/li>\n<li><strong>\u652f\u6301\u591a\u8bed\u8a00<\/strong>\uff1a\u4eceJavaScript\u5230Rust\uff0c\u81ea\u5b9a\u4e49\u63d0\u793a\u8bcd\u5747\u9002\u7528\u3002<\/li>\n<\/ul>\n<h3>\u5178\u578b\u5e94\u7528\u573a\u666f<\/h3>\n<p>\u4f8b\u5982\uff0c\u5728Web\u5f00\u53d1\u4e2d\uff0c\u60a8\u53ef\u4ee5\u8bbe\u7f6e\u201c\u6240\u6709HTML\u5143\u7d20\u4f7f\u7528\u8bed\u4e49\u6807\u7b7e\u201d\uff1b\u5728\u673a\u5668\u5b66\u4e60\u9879\u76ee\u4e2d\uff0c\u53ef\u8981\u6c42\u201c\u4f7f\u7528TensorFlow 2.x API\u5e76\u6dfb\u52a0loss\u66f2\u7ebf\u6ce8\u91ca\u201d\u3002\u5b9e\u9645\u6848\u4f8b\u663e\u793a\uff0c\u4e00\u5bb6\u91d1\u878d\u79d1\u6280\u516c\u53f8\u901a\u8fc7\u81ea\u5b9a\u4e49\u63d0\u793a\u8bcd\uff0c\u5c06\u4ee3\u7801\u5ba1\u67e5\u901a\u8fc7\u7387\u63d0\u5347\u4e8630%\u3002<\/p>\n<h2>\u5982\u4f55\u4f7f\u7528 Custom Prompts\uff1f<\/h2>\n<p>\u4f7f\u7528\u6b65\u9aa4\u975e\u5e38\u7b80\u5355\uff1a<\/p>\n<ol>\n<li>\u5728\u9879\u76ee\u6839\u76ee\u5f55\u521b\u5efa <code>.github\/copilot-instructions.md<\/code> \u6587\u4ef6\u3002<\/li>\n<li>\u7f16\u5199\u6e05\u6670\u7684\u6307\u4ee4\uff0c\u4f8b\u5982\uff1a\u201c\u59cb\u7ec8\u4f7f\u7528 async\/await \u800c\u975e\u56de\u8c03\u51fd\u6570\u201d\u3002<\/li>\n<li>\u63d0\u4ea4\u6587\u4ef6\u81f3\u4ed3\u5e93\uff0c\u5e76\u63a8\u9001\u5230\u8fdc\u7a0b\u3002<\/li>\n<li>\u5728VS Code\u6216GitHub Codespaces\u4e2d\u7f16\u5199\u4ee3\u7801\u65f6\uff0cCopilot\u81ea\u52a8\u9075\u5faa\u6307\u4ee4\u3002<\/li>\n<\/ol>\n<p>\u6b64\u5916\uff0c\u60a8\u8fd8\u53ef\u4ee5\u901a\u8fc7 <a href=\"https:\/\/docs.github.com\/en\/copilot\/customizing-copilot\/configuring-copilot-settings\" target=\"_blank\">\u5b98\u65b9\u6587\u6863<\/a> \u4e86\u89e3\u66f4\u9ad8\u7ea7\u7684\u914d\u7f6e\u9009\u9879\uff0c\u5982\u9488\u5bf9\u4e0d\u540c\u9879\u76ee\u4f7f\u7528\u4e0d\u540c\u63d0\u793a\u8bcd\u3002<\/p>\n<h2>\u603b\u7ed3\u4e0e\u6700\u4f73\u5b9e\u8df5<\/h2>\n<p>GitHub Copilot Custom Prompts \u4e0d\u4ec5\u4ec5\u662f\u5de5\u5177\uff0c\u66f4\u662f\u56e2\u961f\u534f\u4f5c\u7684\u89c4\u8303\u5229\u5668\u3002\u5efa\u8bae\u4ece\u5c0f\u578b\u9879\u76ee\u5f00\u59cb\u6d4b\u8bd5\uff0c\u9010\u6b65\u79ef\u7d2f\u6307\u4ee4\u5e93\uff0c\u5e76\u5b9a\u671f\u6839\u636e\u56e2\u961f\u53cd\u9988\u4f18\u5316\u63d0\u793a\u8bcd\u3002\u6700\u540e\uff0c\u6b22\u8fce\u8bbf\u95ee<a href=\"https:\/\/github.com\/features\/copilot\" target=\"_blank\">\u5b98\u65b9\u7f51\u7ad9<\/a>\u4e86\u89e3\u66f4\u591a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u4eba\u5de5\u667a\u80fd\u8f85\u52a9\u7f16\u7a0b\u9886\u57df\uff0cGitHub Copilot Custom Prompts \u6b63\u6210\u4e3a\u5f00\u53d1\u8005\u63d0\u5347\u751f\u4ea7\u529b\u7684\u5173 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[5415,6180,5417,1381,25862],"class_list":["post-22766","post","type-post","status-publish","format-standard","hentry","category-4","tag-ai","tag-github-copilot","tag-5417","tag-1381","tag-25862"],"_links":{"self":[{"href":"https:\/\/ab123.xyz\/index.php?rest_route=\/wp\/v2\/posts\/22766","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ab123.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ab123.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ab123.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ab123.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=22766"}],"version-history":[{"count":1,"href":"https:\/\/ab123.xyz\/index.php?rest_route=\/wp\/v2\/posts\/22766\/revisions"}],"predecessor-version":[{"id":22767,"href":"https:\/\/ab123.xyz\/index.php?rest_route=\/wp\/v2\/posts\/22766\/revisions\/22767"}],"wp:attachment":[{"href":"https:\/\/ab123.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=22766"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ab123.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=22766"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ab123.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=22766"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}