Skip to main content

在 Windows 终端中向 GitHub Copilot 提问

可以在 Windows Terminal 中使用 Copilot 来获取命令行的建议和说明。

先决条件

如果能够通过组织或企业访问 GitHub Copilot,当组织所有者或企业管理员禁用了 时,将无法使用 Windows Terminal 中的 Copilot。 请参阅“管理组织中的 Copilot 策略”。

获取命令说明和建议

在“终端聊天”聊天窗口中,键入问题(例如 how do i list all markdown files in my directory),然后按 Enter

Copilot 的答案显示在问题下方。

单击答案,将其插入命令行。

分享反馈

若要向 Windows Terminal 发送有关建议质量的反馈,请在 Windows Terminal 存储库中提出问题。

其他阅读材料