# 用 AI 写代码

意图 · https://godooo.ai/zh/goal/code-with-ai

> 「用 AI 写代码」需要：代码补全、自主编程；可选：代码库问答、代码审查。

让 AI 帮你补全、编写、解释和审查代码。

## 需要哪些能力

- **[代码补全](https://godooo.ai/zh/capability/code-completion)**: [Cursor](https://godooo.ai/zh/product/cursor), [GitHub Copilot](https://godooo.ai/zh/product/github-copilot), [Windsurf](https://godooo.ai/zh/product/windsurf), [Zed](https://godooo.ai/zh/product/zed)
- **[自主编程](https://godooo.ai/zh/capability/coding-agent)**: [Cursor](https://godooo.ai/zh/product/cursor), [Claude Code](https://godooo.ai/zh/cli/claude-code), [GitHub Copilot](https://godooo.ai/zh/product/github-copilot), [Claude](https://godooo.ai/zh/model/claude)
- **[代码库问答](https://godooo.ai/zh/capability/codebase-qa)** (可选): [Cline](https://godooo.ai/zh/agent/cline), [Serena](https://godooo.ai/zh/mcp/serena), [DeepWiki MCP](https://godooo.ai/zh/mcp/deepwiki), [Repomix](https://godooo.ai/zh/cli/repomix)
- **[代码审查](https://godooo.ai/zh/capability/code-review)** (可选): [Cursor](https://godooo.ai/zh/product/cursor), [Claude Code](https://godooo.ai/zh/cli/claude-code), [GitHub Copilot](https://godooo.ai/zh/product/github-copilot), [Codex](https://godooo.ai/zh/cli/codex)

## 常见问题

### 用 AI 写代码 是什么？

让 AI 帮你补全、编写、解释和审查代码。「用 AI 写代码」需要：代码补全、自主编程；可选：代码库问答、代码审查。

### 「用 AI 写代码」需要哪些 AI 工具？

代码补全：Cursor、GitHub Copilot、Windsurf、Zed；自主编程：Cursor、Claude Code、GitHub Copilot、Claude；代码库问答：Cline、Serena、DeepWiki MCP、Repomix；代码审查：Cursor、Claude Code、GitHub Copilot、Codex。

---

最后更新 2026-09-24 · 这是 https://godooo.ai/zh/goal/code-with-ai 的 Markdown 版本。本站每个页面都有：在地址后面加 .md。
