使用 AI
安装并激活扩展程序,即可与 AI 代理进行对话,这些代理可代表您执行操作,例如编辑文件、运行命令或触发构建。
下表介绍了您可以在Qt Creator 中使用的与AI相关的扩展。
| 扩展 | 描述 | 阅读更多 |
|---|---|---|
| ACP 客户端 | 使用代理客户端协议 (ACP) 让您能够与 AI 代理进行对话,这些代理能够理解您的代码库,并代表您执行操作,例如编辑文件、运行命令或触发构建。要触发这些操作,您还需要激活 MCP 服务器扩展。 | 使用 ACP 客户端 |
| GitHub Copilot | 将GitHub Copilot集成到Qt Creator 中。您可以在“Edit ”模式下查看 Copilot 提供的建议。 | 使用 GitHub Copilot |
| MCP 服务器 | 允许 AI 助手通过模型上下文协议 (MCP) 控制Qt Creator ,以进行项目调试、构建和管理。 | 设置Qt Creator MCP 服务器 |
| Qt AI 助手 | 连接到大型语言模型(LLM)后,可作为编码助手。它能自动补全代码、提供专业的编码建议、建议代码修复方案,并编写测试用例和代码文档。 | 使用 Qt AI Assistant |
另请参阅 《如何使用 AI》。
Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.