{"meta":{"title":"支持不同类型的自定义说明","intro":"了解哪些环境支持哪种类型的自定义指令。","product":"GitHub Copilot","breadcrumbs":[{"href":"/zh/enterprise-cloud@latest/copilot","title":"GitHub Copilot"},{"href":"/zh/enterprise-cloud@latest/copilot/reference","title":"参考资料"},{"href":"/zh/enterprise-cloud@latest/copilot/reference/custom-instructions-support","title":"自定义指令支持"}],"documentType":"article"},"body":"# 支持不同类型的自定义说明\n\n了解哪些环境支持哪种类型的自定义指令。\n\n本参考文章详细介绍了各种环境中支持哪种类型的自定义指令。 有关各种类型的自定义指令 GitHub Copilot 的详细信息，请参阅 [关于自定义GitHub Copilot 响应](/zh/enterprise-cloud@latest/copilot/concepts/prompting/response-customization)。\n\n## GitHub.com\n\n<table>\n  <thead>\n    <tr>\n      <th style=\"width: 25%\">\nCopilot 功能</th>\n      <th>支持的自定义指令类型</th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr>\n      <td>副驾驶聊天 </td>\n      <td>\n        <ul style=\"list-style: none; padding-left: 1.5em; margin-left: 0;\">\n\n<li style=\"text-indent: -1.6em;\">\n<span aria-hidden=\"true\">\n👤\n</span>\n&nbsp;\n<strong>个人指示</strong>。</li>\n<li style=\"text-indent: -1.6em;\">\n<span aria-hidden=\"true\">\n📦\n</span>\n&nbsp;\n<strong>存储库范围的</strong> 说明（使用 <code>.github/copilot-instructions.md</code> 文件）。</li>\n\n<li style=\"text-indent: -1.6em;\">\n<span aria-hidden=\"true\">🏢</span>&nbsp;<strong>组织</strong>的说明。</li>\n        </ul>\n      </td>\n    </tr>\n    <tr>\n      <td>Copilot云代理</td>\n      <td>\n        <ul style=\"list-style: none; padding-left: 1.5em; margin-left: 0;\">\n\n<li style=\"text-indent: -1.6em;\">\n<span aria-hidden=\"true\">\n📦\n</span>\n&nbsp;\n<strong>存储库范围的</strong> 说明（使用 <code>.github/copilot-instructions.md</code> 文件）。</li>\n<li style=\"text-indent: -1.6em;\">\n<span aria-hidden=\"true\">\n📂\n</span>\n&nbsp;\n<strong>路径特定</strong> 说明（使用 <code>.github/instructions/**/*.instructions.md</code> 文件）。</li>\n\n<li style=\"text-indent: -1.6em;\">\n<span aria-hidden=\"true\">🤖</span>&nbsp;<strong>代理</strong>说明（使用<code>AGENTS.md</code><code>CLAUDE.md</code>或<code>GEMINI.md</code>文件）。</li>\n<li style=\"text-indent: -1.6em;\">\n<span aria-hidden=\"true\">🏢</span>&nbsp;<strong>组织</strong>的说明。</li>\n        </ul>\n      </td>\n    </tr>\n    <tr>\n      <td>Copilot 代码评审</td>\n      <td>\n        <ul style=\"list-style: none; padding-left: 1.5em; margin-left: 0;\">\n\n<li style=\"text-indent: -1.6em;\">\n<span aria-hidden=\"true\">\n📦\n</span>\n&nbsp;\n<strong>存储库范围的</strong> 说明（使用 <code>.github/copilot-instructions.md</code> 文件）。</li>\n<li style=\"text-indent: -1.6em;\">\n<span aria-hidden=\"true\">\n📂\n</span>\n&nbsp;\n<strong>路径特定</strong> 说明（使用 <code>.github/instructions/**/*.instructions.md</code> 文件）。</li>\n\n<li style=\"text-indent: -1.6em;\">\n<span aria-hidden=\"true\">🏢</span>&nbsp;<strong>组织</strong>的说明。</li>\n        </ul>\n      </td>\n    </tr>\n  </tbody>\n</table>\n\n## Visual Studio Code\n\n<table>\n  <thead>\n    <tr>\n      <th style=\"width: 25%\">\nCopilot 功能</th>\n      <th>支持的自定义指令类型</th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr>\n      <td>副驾驶聊天 </td>\n      <td>\n        <ul style=\"list-style: none; padding-left: 1.5em; margin-left: 0;\">\n\n<li style=\"text-indent: -1.6em;\">\n<span aria-hidden=\"true\">\n📦\n</span>\n&nbsp;\n<strong>存储库范围的</strong> 说明（使用 <code>.github/copilot-instructions.md</code> 文件）。</li>\n<li style=\"text-indent: -1.6em;\">\n<span aria-hidden=\"true\">\n📂\n</span>\n&nbsp;\n<strong>路径特定</strong> 说明（使用 <code>.github/instructions/**/*.instructions.md</code> 文件）。</li>\n\n<li style=\"text-indent: -1.6em;\">\n<span aria-hidden=\"true\">🤖</span>&nbsp;<strong>代理</strong> 指令（使用 <code>AGENTS.md</code> 文件）。</li>\n        </ul>\n      </td>\n    </tr>\n    <tr>\n      <td>Copilot云代理</td>\n      <td>\n        <ul style=\"list-style: none; padding-left: 1.5em; margin-left: 0;\">\n\n<li style=\"text-indent: -1.6em;\">\n<span aria-hidden=\"true\">\n📦\n</span>\n&nbsp;\n<strong>存储库范围的</strong> 说明（使用 <code>.github/copilot-instructions.md</code> 文件）。</li>\n<li style=\"text-indent: -1.6em;\">\n<span aria-hidden=\"true\">\n📂\n</span>\n&nbsp;\n<strong>路径特定</strong> 说明（使用 <code>.github/instructions/**/*.instructions.md</code> 文件）。</li>\n\n<li style=\"text-indent: -1.6em;\">\n<span aria-hidden=\"true\">🤖</span>&nbsp;<strong>代理</strong>说明（使用<code>AGENTS.md</code><code>CLAUDE.md</code>或<code>GEMINI.md</code>文件）。</li>\n        </ul>\n      </td>\n    </tr>\n    <tr>\n      <td>Copilot 代码评审</td>\n      <td>\n        <ul style=\"list-style: none; padding-left: 1.5em; margin-left: 0;\">\n<li style=\"text-indent: -1.6em;\">\n<span aria-hidden=\"true\">\n📦\n</span>\n&nbsp;\n<strong>存储库范围的</strong> 说明（使用 <code>.github/copilot-instructions.md</code> 文件）。</li>\n        </ul>\n      </td>\n    </tr>\n  </tbody>\n</table>\n\n## Visual Studio\n\n<table>\n  <thead>\n    <tr>\n      <th style=\"width: 25%\">\nCopilot 功能</th>\n      <th>支持的自定义指令类型</th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr>\n      <td>副驾驶聊天 </td>\n      <td>\n        <ul style=\"list-style: none; padding-left: 1.5em; margin-left: 0;\">\n\n<li style=\"text-indent: -1.6em;\">\n<span aria-hidden=\"true\">\n📦\n</span>\n&nbsp;\n<strong>存储库范围的</strong> 说明（使用 <code>.github/copilot-instructions.md</code> 文件）。</li>\n<li style=\"text-indent: -1.6em;\">\n<span aria-hidden=\"true\">\n📂\n</span>\n&nbsp;\n<strong>路径特定</strong> 说明（使用 <code>.github/instructions/**/*.instructions.md</code> 文件）。</li>\n</ul>\n      </td>\n    </tr>\n    <tr>\n      <td>Copilot 代码评审</td>\n      <td>\n        <ul style=\"list-style: none; padding-left: 1.5em; margin-left: 0;\">\n<li style=\"text-indent: -1.6em;\">\n<span aria-hidden=\"true\">\n📦\n</span>\n&nbsp;\n<strong>存储库范围的</strong> 说明（使用 <code>.github/copilot-instructions.md</code> 文件）。</li>\n        </ul>\n      </td>\n    </tr>\n  </tbody>\n</table>\n\n## JetBrains IDE\n\n<table>\n  <thead>\n    <tr>\n      <th style=\"width: 25%\">\nCopilot 功能</th>\n      <th>支持的自定义指令类型</th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr>\n      <td>副驾驶聊天 </td>\n      <td>\n        <ul style=\"list-style: none; padding-left: 1.5em; margin-left: 0;\">\n\n<li style=\"text-indent: -1.6em;\">\n<span aria-hidden=\"true\">\n📦\n</span>\n&nbsp;\n<strong>存储库范围的</strong> 说明（使用 <code>.github/copilot-instructions.md</code> 文件）。</li>\n<li style=\"text-indent: -1.6em;\">\n<span aria-hidden=\"true\">\n📂\n</span>\n&nbsp;\n<strong>路径特定</strong> 说明（使用 <code>.github/instructions/**/*.instructions.md</code> 文件）。</li>\n</ul>\n      </td>\n    </tr>\n    <tr>\n      <td>Copilot云代理</td>\n      <td>\n        <ul style=\"list-style: none; padding-left: 1.5em; margin-left: 0;\">\n\n<li style=\"text-indent: -1.6em;\">\n<span aria-hidden=\"true\">\n📦\n</span>\n&nbsp;\n<strong>存储库范围的</strong> 说明（使用 <code>.github/copilot-instructions.md</code> 文件）。</li>\n<li style=\"text-indent: -1.6em;\">\n<span aria-hidden=\"true\">\n📂\n</span>\n&nbsp;\n<strong>路径特定</strong> 说明（使用 <code>.github/instructions/**/*.instructions.md</code> 文件）。</li>\n\n<li style=\"text-indent: -1.6em;\">\n<span aria-hidden=\"true\">🤖</span>&nbsp;<strong>代理</strong>说明（使用<code>AGENTS.md</code><code>CLAUDE.md</code>或<code>GEMINI.md</code>文件）。</li>\n        </ul>\n      </td>\n    </tr>\n    <tr>\n      <td>Copilot 代码评审</td>\n      <td>\n        <ul style=\"list-style: none; padding-left: 1.5em; margin-left: 0;\">\n\n<li style=\"text-indent: -1.6em;\">\n<span aria-hidden=\"true\">\n📦\n</span>\n&nbsp;\n<strong>存储库范围的</strong> 说明（使用 <code>.github/copilot-instructions.md</code> 文件）。</li>\n<li style=\"text-indent: -1.6em;\">\n<span aria-hidden=\"true\">\n📂\n</span>\n&nbsp;\n<strong>路径特定</strong> 说明（使用 <code>.github/instructions/**/*.instructions.md</code> 文件）。</li>\n</ul>\n      </td>\n    </tr>\n  </tbody>\n</table>\n\n## Eclipse\n\n<table>\n  <thead>\n    <tr>\n      <th style=\"width: 25%\">\nCopilot 功能</th>\n      <th>支持的自定义指令类型</th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr>\n      <td>副驾驶聊天 </td>\n      <td>\n        <ul style=\"list-style: none; padding-left: 1.5em; margin-left: 0;\">\n<li style=\"text-indent: -1.6em;\">\n<span aria-hidden=\"true\">\n📦\n</span>\n&nbsp;\n<strong>存储库范围的</strong> 说明（使用 <code>.github/copilot-instructions.md</code> 文件）。</li>\n        </ul>\n      </td>\n    </tr>\n    <tr>\n      <td>Copilot云代理</td>\n      <td>\n        <ul style=\"list-style: none; padding-left: 1.5em; margin-left: 0;\">\n\n<li style=\"text-indent: -1.6em;\">\n<span aria-hidden=\"true\">\n📦\n</span>\n&nbsp;\n<strong>存储库范围的</strong> 说明（使用 <code>.github/copilot-instructions.md</code> 文件）。</li>\n<li style=\"text-indent: -1.6em;\">\n<span aria-hidden=\"true\">\n📂\n</span>\n&nbsp;\n<strong>路径特定</strong> 说明（使用 <code>.github/instructions/**/*.instructions.md</code> 文件）。</li>\n\n<li style=\"text-indent: -1.6em;\">\n<span aria-hidden=\"true\">🤖</span>&nbsp;<strong>代理</strong>说明（使用<code>AGENTS.md</code><code>CLAUDE.md</code>或<code>GEMINI.md</code>文件）。</li>\n        </ul>\n      </td>\n    </tr>\n    <tr>\n      <td>Copilot 代码评审</td>\n      <td>\n        <ul style=\"list-style: none; padding-left: 1.5em; margin-left: 0;\">\n<li style=\"text-indent: -1.6em;\">目前不支持自定义说明。</li>\n        </ul>\n      </td>\n    </tr>\n  </tbody>\n</table>\n\n## Xcode\n\n<table>\n  <thead>\n    <tr>\n      <th style=\"width: 25%\">\nCopilot 功能</th>\n      <th>支持的自定义指令类型</th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr>\n      <td>副驾驶聊天 </td>\n      <td>\n        <ul style=\"list-style: none; padding-left: 1.5em; margin-left: 0;\">\n\n<li style=\"text-indent: -1.6em;\">\n<span aria-hidden=\"true\">\n📦\n</span>\n&nbsp;\n<strong>存储库范围的</strong> 说明（使用 <code>.github/copilot-instructions.md</code> 文件）。</li>\n<li style=\"text-indent: -1.6em;\">\n<span aria-hidden=\"true\">\n📂\n</span>\n&nbsp;\n<strong>路径特定</strong> 说明（使用 <code>.github/instructions/**/*.instructions.md</code> 文件）。</li>\n</ul>\n      </td>\n    </tr>\n    <tr>\n      <td>Copilot云代理</td>\n      <td>\n        <ul style=\"list-style: none; padding-left: 1.5em; margin-left: 0;\">\n\n<li style=\"text-indent: -1.6em;\">\n<span aria-hidden=\"true\">\n📦\n</span>\n&nbsp;\n<strong>存储库范围的</strong> 说明（使用 <code>.github/copilot-instructions.md</code> 文件）。</li>\n<li style=\"text-indent: -1.6em;\">\n<span aria-hidden=\"true\">\n📂\n</span>\n&nbsp;\n<strong>路径特定</strong> 说明（使用 <code>.github/instructions/**/*.instructions.md</code> 文件）。</li>\n\n<li style=\"text-indent: -1.6em;\">\n<span aria-hidden=\"true\">🤖</span>&nbsp;<strong>代理</strong>说明（使用<code>AGENTS.md</code><code>CLAUDE.md</code>或<code>GEMINI.md</code>文件）。</li>\n        </ul>\n      </td>\n    </tr>\n    <tr>\n      <td>Copilot 代码评审</td>\n      <td>\n        <ul style=\"list-style: none; padding-left: 1.5em; margin-left: 0;\">\n\n<li style=\"text-indent: -1.6em;\">\n<span aria-hidden=\"true\">\n📦\n</span>\n&nbsp;\n<strong>存储库范围的</strong> 说明（使用 <code>.github/copilot-instructions.md</code> 文件）。</li>\n<li style=\"text-indent: -1.6em;\">\n<span aria-hidden=\"true\">\n📂\n</span>\n&nbsp;\n<strong>路径特定</strong> 说明（使用 <code>.github/instructions/**/*.instructions.md</code> 文件）。</li>\n</ul>\n      </td>\n    </tr>\n  </tbody>\n</table>\n\n## Copilot 命令行界面（CLI）\n\n<ul style=\"list-style: none; padding-left: 1.5em; margin-left: 0;\">\n\n  <li style=\"text-indent: -1.6em;\">\n  <span aria-hidden=\"true\">\n  📦\n  </span>\n  &nbsp;\n  <strong>存储库范围的</strong> 说明（使用 <code>.github/copilot-instructions.md</code> 文件）。</li>\n<li style=\"text-indent: -1.6em;\">\n<span aria-hidden=\"true\">\n📂\n</span>\n&nbsp;\n<strong>路径特定</strong> 说明（使用 <code>.github/instructions/**/*.instructions.md</code> 文件）。</li>\n\n  <li style=\"text-indent: -1.6em;\">\n  <span aria-hidden=\"true\">🤖</span>&nbsp;<strong>代理</strong> 指令（使用 <code>AGENTS.md</code> 文件）。</li>\n</ul>\n\n## 延伸阅读\n\n* [为GitHub Copilot添加存储库自定义说明](/zh/enterprise-cloud@latest/copilot/how-tos/configure-custom-instructions/add-repository-instructions)\n* [为 GitHub Copilot 添加个人自定义说明](/zh/enterprise-cloud@latest/copilot/how-tos/configure-custom-instructions/add-personal-instructions)\n* [为 GitHub Copilot 添加组织自定义指令](/zh/enterprise-cloud@latest/copilot/how-tos/configure-custom-instructions/add-organization-instructions)"}