{"meta":{"title":"在Windows 终端中向GitHub Copilot提问的问题","intro":"你可以在 Copilot 中使用 Windows Terminal 来获取命令行的建议和解释。","product":"GitHub Copilot","breadcrumbs":[{"href":"/zh/enterprise-cloud@latest/copilot","title":"GitHub Copilot"},{"href":"/zh/enterprise-cloud@latest/copilot/how-tos","title":"操作方法"},{"href":"/zh/enterprise-cloud@latest/copilot/how-tos/chat-with-copilot","title":"与Copilot聊天"},{"href":"/zh/enterprise-cloud@latest/copilot/how-tos/chat-with-copilot/chat-in-windows-terminal","title":"在 Windows 终端 中聊天"}],"documentType":"article"},"body":"# 在Windows 终端中向GitHub Copilot提问的问题\n\n你可以在 Copilot 中使用 Windows Terminal 来获取命令行的建议和解释。\n\n## 先决条件\n\n* **GitHub Copilot访问** 。 请参阅 [什么是GitHub Copilot？](/zh/enterprise-cloud@latest/copilot/get-started/what-is-github-copilot#get-access)。\n* **Windows Terminal 已安装 Canary**。 有关安装说明，请参阅 [安装 Windows Terminal Canary](https://github.com/microsoft/terminal?tab=readme-ov-file#installing-windows-terminal-canary)。\n* **GitHub Copilot 已连接到“终端聊天”**。 请参阅 [GitHub Copilot 快速入门](/zh/enterprise-cloud@latest/copilot/get-started/quickstart?tool=windowsterminal)。\n\n如果你通过所在组织或企业有权访问GitHub Copilot，则在你所在组织的所有者或企业管理员已禁用Copilot的情况下，你将无法在Windows Terminal中使用Copilot CLI。 请参阅 [管理组织中GitHub Copilot的策略和功能](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-organization/manage-policies)。\n\n## 查看命令说明与建议\n\n在终端聊天窗口中，键入问题（例如）， `how do i list all markdown files in my directory`然后按 <kbd>Enter</kbd>。\n\nCopilot答案显示在你的问题下方。\n\n单击答案，将其插入命令行。\n\n## 分享反馈\n\n要向 Windows Terminal 发送有关建议质量的反馈，请在 [Windows Terminal 存储库](https://github.com/microsoft/terminal/issues)中打开一个议题。\n\n## 其他阅读材料\n\n* Microsoft Learn 文档中的[终端聊天](https://learn.microsoft.com/windows/terminal/terminal-chat#setting-up-terminal-chat)"}