跳至主要内容

对不同类型自定义指令的支持

了解哪些环境支持哪些类型的自定义指令。

此参考文章提供了在各种环境中支持的自定义指令类型的详细信息。有关 GitHub Copilot 各种自定义指令的更多信息,请参阅 关于自定义 GitHub Copilot 响应的说明

GitHub.com

Copilot 功能 支持的自定义指令类型
Copilot 聊天
  •  个人 指令。
  •  仓库范围 指令(使用 .github/copilot-instructions.md 文件)。
  •  组织 指令。
Copilot 云代理
  •  仓库范围 指令(使用 .github/copilot-instructions.md 文件)。
  •  路径特定 指令(使用 .github/instructions/**/*.instructions.md 文件)。
  •  代理 指令(使用 AGENTS.mdCLAUDE.mdGEMINI.md 文件)。
  •  组织 指令。
Copilot 代码审查
  •  仓库范围 指令(使用 .github/copilot-instructions.md 文件)。
  •  路径特定 指令(使用 .github/instructions/**/*.instructions.md 文件)。
  •  组织 指令。

Visual Studio Code

Copilot 功能 支持的自定义指令类型
Copilot 聊天
  •  仓库范围 指令(使用 .github/copilot-instructions.md 文件)。
  •  路径特定 指令(使用 .github/instructions/**/*.instructions.md 文件)。
  •  代理 指令(使用 AGENTS.md 文件)。
Copilot 云代理
  •  仓库范围 指令(使用 .github/copilot-instructions.md 文件)。
  •  路径特定 指令(使用 .github/instructions/**/*.instructions.md 文件)。
  •  代理 指令(使用 AGENTS.mdCLAUDE.mdGEMINI.md 文件)。
Copilot 代码审查
  •  仓库范围 指令(使用 .github/copilot-instructions.md 文件)。

Visual Studio

Copilot 功能 支持的自定义指令类型
Copilot 聊天
  •  仓库范围 指令(使用 .github/copilot-instructions.md 文件)。
  •  路径特定 指令(使用 .github/instructions/**/*.instructions.md 文件)。
Copilot 代码审查
  •  仓库范围 指令(使用 .github/copilot-instructions.md 文件)。

JetBrains IDEs

Copilot 功能 支持的自定义指令类型
Copilot 聊天
  •  仓库范围 指令(使用 .github/copilot-instructions.md 文件)。
  •  路径特定 指令(使用 .github/instructions/**/*.instructions.md 文件)。
Copilot 云代理
  •  仓库范围 指令(使用 .github/copilot-instructions.md 文件)。
  •  路径特定 指令(使用 .github/instructions/**/*.instructions.md 文件)。
  •  代理 指令(使用 AGENTS.mdCLAUDE.mdGEMINI.md 文件)。
Copilot 代码审查
  •  仓库范围 指令(使用 .github/copilot-instructions.md 文件)。
  •  路径特定 指令(使用 .github/instructions/**/*.instructions.md 文件)。

Eclipse

Copilot 功能 支持的自定义指令类型
Copilot 聊天
  •  仓库范围 指令(使用 .github/copilot-instructions.md 文件)。
Copilot 云代理
  •  仓库范围 指令(使用 .github/copilot-instructions.md 文件)。
  •  路径特定 指令(使用 .github/instructions/**/*.instructions.md 文件)。
  •  代理 指令(使用 AGENTS.mdCLAUDE.mdGEMINI.md 文件)。
Copilot 代码审查
  • 当前不支持自定义指令。

Xcode

Copilot 功能 支持的自定义指令类型
Copilot 聊天
  •  仓库范围 指令(使用 .github/copilot-instructions.md 文件)。
  •  路径特定 指令(使用 .github/instructions/**/*.instructions.md 文件)。
Copilot 云代理
  •  仓库范围 指令(使用 .github/copilot-instructions.md 文件)。
  •  路径特定 指令(使用 .github/instructions/**/*.instructions.md 文件)。
  •  代理 指令(使用 AGENTS.mdCLAUDE.mdGEMINI.md 文件)。
Copilot 代码审查
  •  仓库范围 指令(使用 .github/copilot-instructions.md 文件)。
  •  路径特定 指令(使用 .github/instructions/**/*.instructions.md 文件)。

Copilot CLI

  •  仓库范围 指令(使用 .github/copilot-instructions.md 文件)。
  •  路径特定 指令(使用 .github/instructions/**/*.instructions.md 文件)。
  •  代理 指令(使用 AGENTS.md 文件)。

延伸阅读

© . This site is unofficial and not affiliated with GitHub, Inc.