# Zed（文本编辑器）

**Zed** 是一款高性能、多人协作、开源的代码编辑器，由 Atom 编辑器与 Tree-sitter 解析库的创造者用 Rust 编写，由 Zed Industries 以 GPL-3.0-or-later 许可证分发。<sup>[1](https://github.com/zed-industries/zed?tab=readme-ov-file)</sup> 它抛弃了大多数图形化编辑器所采用的 Web 技术栈：不在 Electron 外壳中渲染 HTML，而是通过一个名为 GPUI 的自制 Rust 框架，直接在 GPU 上绘制界面；它将文本缓冲区表示为[无冲突复制数据类型](https://www.edgepedia.org/zh/conflict-free-replicated-data-type)（CRDT），使多人——或一个人与一个 AI 代理——可以同时编辑同一个文件。<sup>[2](https://zed.dev/blog/zed-1-0)</sup><sup> • </sup><sup>[3](https://www.xda-developers.com/zed-speed-makes-vs-code-antigravity-sluggish/)</sup> 该项目私下开发多年，于 2024 年 1 月开源；在 1.0 版本发布公告中，团队表示有数十万开发者日常依赖它。<sup>[4](https://www.linuxcompatible.org/story/zed-editor-1210-release-faster-rendering-new-ai-models-and-languageserver-upgrades/)</sup><sup> • </sup><sup>[2](https://zed.dev/blog/zed-1-0)</sup>

| 关键事实 | 详情 |
|---|---|
| 架构 | 整个编辑器用 Rust 编写，通过自制 GPUI 框架在 GPU 上渲染（据报道达 120 FPS），各平台使用手工编写的着色器<sup>[5](https://zed.dev/blog/fastest-ai-code-editor)</sup><sup> • </sup><sup>[3](https://www.xda-developers.com/zed-speed-makes-vs-code-antigravity-sluggish/)</sup> |
| 协作 | 文本缓冲区为 CRDT；编辑在本地应用，操作通过持久 WebSocket 连接与 Zed 服务器交换<sup>[6](https://semaphore.io/blog/nathan-sobo)</sup> |
| 启动速度（独立测试） | 在 Apple M3 Max 上，Zed 0.15 冷启动为 184 毫秒，VS Code 2.2 为 282 毫秒，Neovim 0.10 为 87 毫秒<sup>[7](https://johal.in/visual-studio-code-22-vs-zed-015-vs)</sup> |
| 语言 | 支持语言服务器协议，覆盖约 80 种有文档记载的语言，并使用 Tree-sitter 语法高亮<sup>[8](https://chatforest.com/reviews/zed-1-0-ai-code-editor-parallel-agents-rust-review/)</sup> |
| 许可 | 主要为 GPL-3.0-or-later，标注处为 Apache-2.0 组件<sup>[1](https://github.com/zed-industries/zed?tab=readme-ov-file)</sup> |
| 定价 | 不含 AI 功能时免费；免费计划每月含 50 次 AI 提示，Pro 计划每月 20 美元提供 500 次提示<sup>[5](https://zed.dev/blog/fastest-ai-code-editor)</sup> |
| 融资 | 一篇报道称由红杉资本领投 3200 万美元 B 轮融资，总融资超过 4200 万美元；另一篇记录为 2024 年 B 轮，总额 4200 万美元<sup>[4](https://www.linuxcompatible.org/story/zed-editor-1210-release-faster-rendering-new-ai-models-and-languageserver-upgrades/)</sup> |
| 采用情况 | 检索时 GitHub 星标 88,138 个，未关闭议题 3,298 个<sup>[1](https://github.com/zed-industries/zed?tab=readme-ov-file)</sup> |

## 历史与创始人

Zed Industries 于 2020 年由 内森·索博（Nathan Sobo）和马克斯·布伦斯菲尔德（Max Brunsfeld）在美国博尔德（Boulder）创立。<sup>[9](https://tracxn.com/d/companies/zed/__3jn1wtnWJjfLtgOSDXECkHFjHmFm7BkEKtVzcAABH3A)</sup> 更广泛的创始团队包括 安东尼奥·斯坎杜拉（Antonio Scandurra），他与索博共同设计了 Atom 的 Teletype 协作编辑包，而索博曾在 GitHub 领导 Atom 团队；布伦斯菲尔德创造了 Tree-sitter，即 Zed 用于语法高亮的增量解析框架。<sup>[8](https://chatforest.com/reviews/zed-1-0-ai-code-editor-parallel-agents-rust-review/)</sup> Atom 是他们此前的编辑器，作为 Chromium 的一个分支构建，并催生了 Electron 框架，后者后来成为 VS Code 的基础；Zed 在一定程度上是对这一谱系的刻意回应。<sup>[2](https://zed.dev/blog/zed-1-0)</sup>

这款编辑器最初就是作为多人优先的工具诞生的，实时协作是核心而非附加功能，自 2024 年 8 月起又加入了 AI 功能。<sup>[8](https://chatforest.com/reviews/zed-1-0-ai-code-editor-parallel-agents-rust-review/)</sup> 它于 2024 年 1 月开源，历经五年开发，覆盖 Mac、Windows 和 Linux，代码超过一百万行，达到 1.0 版本。<sup>[4](https://www.linuxcompatible.org/story/zed-editor-1210-release-faster-rendering-new-ai-models-and-languageserver-upgrades/)</sup><sup> • </sup><sup>[2](https://zed.dev/blog/zed-1-0)</sup>

## 架构与性能

**GPUI 渲染。** 用团队的话说，Zed 的组织方式像一款电子游戏：整个应用将数据送入运行在 GPU 上的着色器，使用的是 GPUI——一个用 Rust 从零编写的 UI 框架。<sup>[2](https://zed.dev/blog/zed-1-0)</sup> GPUI 覆盖应用的外壳，与平台 API 交互以创建窗口，并渲染到一位创始人所说的巨大 Metal 画布上；其视图结构基于数据流而非控制流。<sup>[10](https://changelog-2025-05-05.fly.dev/podcast/531)</sup> 编辑器在更新时于 GPU 上重绘整个窗口；一篇报道称其以每秒 120 帧运行，文本以 GPU 纹理形式保存。<sup>[6](https://semaphore.io/blog/nathan-sobo)</sup><sup> • </sup><sup>[3](https://www.xda-developers.com/zed-speed-makes-vs-code-antigravity-sluggish/)</sup> 团队最初尝试以 Rust 为核心，外围保留 Electron 负责渲染，但发现 Electron 的资源占用抵消了核心带来的性能收益。<sup>[6](https://semaphore.io/blog/nathan-sobo)</sup>

**实测数据。** Zed 自家的对比页面报告启动时间低于一秒、输入延迟低于 10 毫秒、内存占用约 600 MB，而 VS Code 启动约需 3 至 5 秒、负载下占用 3 至 4 GB；这些是厂商数据，未经独立复现。<sup>[11](https://www.itechguides.com/zed-editor-review-can-the-rust-powered-code-editor-replace-vs-code/)</sup> 独立测量结果有所不同。一项在 Apple M3 Max 上对 Zed 0.15 的基准测试记录到 184 毫秒冷启动，耗时约为 Neovim 0.10 的 87 毫秒的 2.1 倍，但快于 VS Code 2.2 的 282 毫秒。<sup>[7](https://johal.in/visual-studio-code-22-vs-zed-015-vs)</sup> 一篇 2026 年的评测测得 Zed 空闲时占用 180 MB 内存、输入延迟 2 毫秒，而 VS Code 为 650 MB 和 12 毫秒。<sup>[12](https://www.devtoolreviews.com/reviews/zed-editor-review-2026)</sup> XDA 的测试发现，一个小型项目在 Zed 中占用不到 100 MB 内存，而在 VS Code 中超过 1 GB；大型代码库在 Zed 中几秒内打开，在 VS Code 中则需 10 至 15 秒。<sup>[3](https://www.xda-developers.com/zed-speed-makes-vs-code-antigravity-sluggish/)</sup> 这些数据部分相互矛盾，因此具体数字最好视为数量级的指示，而非精确值。

**多光标成本。** 编辑器本身的工程工作记录了 CRDT 设计在何处耗费时间。在一次优化之前，使用 1,000 个光标输入时，每次击键约需 24 毫秒：其中约 11.8 毫秒用于编辑后显示映射同步，3.7 毫秒用于 CRDT 编辑，3.5 毫秒用于解析所有选区。优化后速度达到原来的约 2.1 倍，每次击键耗时降至 11.7 毫秒，并在 10,000 个光标时将显示同步从 133 毫秒降至 45 毫秒。<sup>[13](https://github.com/zed-industries/zed/pull/58510)</sup> 同一份工程笔记指出，当 Zed 的缓冲区是由片段组成的 CRDT 绳、带有锚点选区和五层变换栈时，VS Code 每光标约 1 至 2 微秒的成本是无法达到的。<sup>[13](https://github.com/zed-industries/zed/pull/58510)</sup>

## 协作功能

Zed 用 CRDT 表示缓冲区数据，这是一种复制数据类型，旨在让各副本在交换更新时收敛，而无需复杂的并发控制；该设计源自 Treedoc（ICDCS 2009）等基础性工作。<sup>[6](https://semaphore.io/blog/nathan-sobo)</sup><sup> • </sup><sup>[14](https://mshapiro.perso.lip6.fr/papers/2009/icdcs09-treedoc.pdf)</sup> 每个客户端对本地副本应用编辑，并与其他客户端交换操作，以收敛到相同内容。<sup>[6](https://semaphore.io/blog/nathan-sobo)</sup> [协作](https://www.edgepedia.org/zh/collaboration)通过到 Zed 服务器的持久 [WebSocket](https://www.edgepedia.org/zh/websocket) 连接运行，远程过程调用经由该连接路由，用户通过 GitHub 用户名添加联系人。<sup>[6](https://semaphore.io/blog/nathan-sobo)</sup>

多人功能集包括频道（Channels）、共享项目、语音聊天和私人通话，且需要登录。<sup>[11](https://www.itechguides.com/zed-editor-review-can-the-rust-powered-code-editor-replace-vs-code/)</sup> 共享项目会授予协作者在该项目内访问本地文件系统的权限，这是邀请参与者之前值得权衡的安全考量。<sup>[11](https://www.itechguides.com/zed-editor-review-can-the-rust-powered-code-editor-replace-vs-code/)</sup> 同一套 CRDT 机制也服务于 AI 工作流：用户可以在 AI 将代码流式写入同一文件时继续输入而不被阻塞。<sup>[3](https://www.xda-developers.com/zed-speed-makes-vs-code-antigravity-sluggish/)</sup> Zed 团队用这款编辑器本身开会、对议题进行分类处理和结对编程，实时共同编辑 Markdown，“像 Google Docs，但用于代码”。<sup>[15](https://www.baseten.co/blog/making-zed-fast-a-conversation-with-richard-feldman/)</sup> 团队正在开发 DeltaDB，一个基于 CRDT 的同步引擎，以字符级粒度追踪每一次更改，并发表了关于 Eg-walker（EuroSys 2025）的研究，该算法合并长期运行的分支比操作转换快数个数量级，而在最坏情况下与现有 CRDT 相当。<sup>[2](https://zed.dev/blog/zed-1-0)</sup><sup> • </sup><sup>[16](https://dl.acm.org/doi/10.1145/3689031.3696076)</sup>

## AI 功能

Zed 的代理面板可以编辑文件系统，并在用户许可下运行语言服务器、代码检查器、格式化工具和终端命令；其能力可通过[模型上下文协议](https://www.edgepedia.org/zh/model-context-protocol)（Model Context Protocol）扩展。<sup>[5](https://zed.dev/blog/fastest-ai-code-editor)</sup> 编辑器支持代理客户端协议（Agent Client Protocol），向外部代理开放，包括 Claude Agent、Codex、OpenCode，以及更近期的 Cursor。<sup>[2](https://zed.dev/blog/zed-1-0)</sup>

关于隐私，Zed 声明代理对话默认私密，除非用户通过反馈按钮选择加入，否则不会保存在其服务器上；并且它不会收集数据用于训练或任何其他目的。<sup>[5](https://zed.dev/blog/fastest-ai-code-editor)</sup> 编辑预测延迟经过端到端优化，计入地理分布用户的完整网络往返时间，推理在 Baseten 托管的 GPU 上运行。<sup>[15](https://www.baseten.co/blog/making-zed-fast-a-conversation-with-richard-feldman/)</sup>

## 扩展与语言支持

Zed 随附覆盖约 80 种有文档记载语言的 LSP 支持，并带有基于 Tree-sitter 的语法高亮；对于 Rust、TypeScript 和 Go 等语言，自动补全、重构和错误检测等核心功能无需插件即可工作。<sup>[8](https://chatforest.com/reviews/zed-1-0-ai-code-editor-parallel-agents-rust-review/)</sup><sup> • </sup><sup>[17](https://www.howtogeek.com/i-stopped-using-vs-code-after-trying-this-less-popular-ide-and-it-isnt-antigravity/)</sup> 一篇评测的目录列出了内置 Git 集成、基于 DAP 的调试、任务、终端、REPL、Dev Containers、远程开发和 AI 工具。<sup>[11](https://www.itechguides.com/zed-editor-review-can-the-rust-powered-code-editor-replace-vs-code/)</sup>

**扩展系统。** Zed 扩展基于 [WebAssembly](https://www.edgepedia.org/zh/webassembly) 构建，这使其快速轻量；一项基准测试测得每个扩展的加载开销为 12 毫秒，而 VS Code 为 47 毫秒，使用 lazy.nvim 的 Neovim 为 9 毫秒。<sup>[17](https://www.howtogeek.com/i-stopped-using-vs-code-after-trying-this-less-popular-ide-and-it-isnt-antigravity/)</sup><sup> • </sup><sup>[7](https://johal.in/visual-studio-code-22-vs-zed-015-vs)</sup> 生态系统比 VS Code 小得多，且估计数字不一：一项对 Zed 0.15 的基准测试计得 120 多个扩展，而 VS Code 有 50,000 多个；一篇 2026 年的评测则计得约 800 个。<sup>[7](https://johal.in/visual-studio-code-22-vs-zed-015-vs)</sup><sup> • </sup><sup>[12](https://www.devtoolreviews.com/reviews/zed-editor-review-2026)</sup> Zed 的扩展 API 与 VS Code 不同，因此现有的 VS Code 扩展不经重写无法移植。<sup>[8](https://chatforest.com/reviews/zed-1-0-ai-code-editor-parallel-agents-rust-review/)</sup><sup> • </sup><sup>[11](https://www.itechguides.com/zed-editor-review-can-the-rust-powered-code-editor-replace-vs-code/)</sup>

## 平台、许可与可用性

Zed 可在 macOS、Linux 和 Windows 上运行，可直接安装或通过本地包管理器安装；其他平台尚不可用。<sup>[1](https://github.com/zed-industries/zed?tab=readme-ov-file)</sup> 稳定版最先登陆 macOS 和 Linux；在代理面板发布时，Windows 用户可以从源码构建或使用测试版，稳定版 Windows 发布计划在 2025 年晚些时候。<sup>[5](https://zed.dev/blog/fastest-ai-code-editor)</sup> 在引用采访之时，稳定版 Windows 支持的缺失被归因于 GPUI 手工编写的着色器，分别为 Mac、Linux 和 Windows 编写。<sup>[15](https://www.baseten.co/blog/making-zed-fast-a-conversation-with-richard-feldman/)</sup>

源代码主要按 GPL-3.0-or-later 许可，标注处为 Apache-2.0 组件。<sup>[1](https://github.com/zed-industries/zed?tab=readme-ov-file)</sup> 对于远程开发，Zed 的文档将 macOS Catalina 或更高版本以及 x86_64 或 arm64 上的 Linux 列为远程服务器平台；Windows 不能充当远程服务器，而通过 Zed 服务器路由流量的旧模式自 0.157 版起已被移除。<sup>[11](https://www.itechguides.com/zed-editor-review-can-the-rust-powered-code-editor-replace-vs-code/)</sup>

## 商业模式与采用情况

Zed 在不使用 AI 功能且不注册账户的情况下免费使用；其声明的意图是个人可以无限期免费使用，商业模式围绕团队构建。<sup>[5](https://zed.dev/blog/fastest-ai-code-editor)</sup><sup> • </sup><sup>[10](https://changelog-2025-05-05.fly.dev/podcast/531)</sup> 变现来自 AI 用量和团队计划：免费计划每月含 50 次 AI 提示，Pro 计划每月 20 美元提供 500 次提示，用户也可以自带 API 密钥或通过 Ollama 在本地运行模型，Zed 不收取费用。<sup>[5](https://zed.dev/blog/fastest-ai-code-editor)</sup> Zed for Business 增加了集中计费、基于角色的访问控制和团队管理。<sup>[2](https://zed.dev/blog/zed-1-0)</sup> 公司声明 AI 功能并非商业模式；收费是因为提供这些功能需要成本。<sup>[15](https://www.baseten.co/blog/making-zed-fast-a-conversation-with-richard-feldman/)</sup>

融资数据在时间上存在分歧。Tracxn 记录两轮共融资 4200 万美元，其中 A 轮于 2023 年 3 月 15 日由 Redpoint Ventures 领投，B 轮于 2024 年 11 月 1 日。<sup>[9](https://tracxn.com/d/companies/zed/__3jn1wtnWJjfLtgOSDXECkHFjHmFm7BkEKtVzcAABH3A)</sup> 一篇较晚的新闻报道称，2025 年 8 月由[红杉资本](https://www.edgepedia.org/zh/sequoia-capital)领投 3200 万美元 B 轮，使总额超过 4200 万美元。<sup>[4](https://www.linuxcompatible.org/story/zed-editor-1210-release-faster-rendering-new-ai-models-and-languageserver-upgrades/)</sup> 两种说法不可能在 B 轮日期上都正确；一个报告总融资 4200 万美元，另一个报告超过 4200 万美元。

在使用方面，Zed 的开源指标表明，约一半用户使用编辑预测能力，约四分之一的活跃用户以某种形式使用代理式编辑。<sup>[18](https://sequoiacap.com/podcast/why-ides-wont-die-in-the-age-of-ai-coding-zed-founder-nathan-sobo)</sup> 检索时 GitHub 仓库有 88,138 个星标和 3,298 个未关闭议题。<sup>[1](https://github.com/zed-industries/zed?tab=readme-ov-file)</sup>

## 对比与局限

与 **VS Code** 相比，评测者反复提到的模式是资源占用和响应速度：在一项测试中，小型项目占用不到 100 MB 对超过 1 GB；在另一项中，空闲时 180 MB 对 650 MB；输入延迟 2 毫秒对 12 毫秒。<sup>[3](https://www.xda-developers.com/zed-speed-makes-vs-code-antigravity-sluggish/)</sup><sup> • </sup><sup>[12](https://www.devtoolreviews.com/reviews/zed-editor-review-2026)</sup> 与 **Neovim** 相比，同一项显示 Zed 启动 184 毫秒的基准测试显示 Neovim 启动 87 毫秒，因此 Zed 并非绝对意义上最快的工具。<sup>[7](https://johal.in/visual-studio-code-22-vs-zed-015-vs)</sup>

主要局限源于年轻的生态系统和架构。扩展目录——视测量日期不同，大约在 120 到 800 之间——远小于 VS Code 的市场，且 VS Code 扩展不经重写无法复用。<sup>[7](https://johal.in/visual-studio-code-22-vs-zed-015-vs)</sup><sup> • </sup><sup>[12](https://www.devtoolreviews.com/reviews/zed-editor-review-2026)</sup><sup> • </sup><sup>[8](https://chatforest.com/reviews/zed-1-0-ai-code-editor-parallel-agents-rust-review/)</sup> 远程开发将 Windows 排除在服务器平台之外。<sup>[11](https://www.itechguides.com/zed-editor-review-can-the-rust-powered-code-editor-replace-vs-code/)</sup> 而支持多人编辑的 CRDT 绳缓冲区，在极端光标数量下施加的每光标成本比 VS Code 高一个数量级，这是团队已记录并部分优化而非消除的权衡。<sup>[13](https://github.com/zed-industries/zed/pull/58510)</sup>

## References

1. [zed-industries/zed GitHub repository](https://github.com/zed-industries/zed?tab=readme-ov-file)
2. [Zed is 1.0 — Zed's Blog](https://zed.dev/blog/zed-1-0)
3. [Zed is the speed demon that makes VS Code and Antigravity feel sluggish — XDA Developers](https://www.xda-developers.com/zed-speed-makes-vs-code-antigravity-sluggish/)
4. [Zed Editor 1.21.0 Release — LinuxCompatible](https://www.linuxcompatible.org/story/zed-editor-1210-release-faster-rendering-new-ai-models-and-languageserver-upgrades/)
5. [Zed: The Fastest AI Code Editor — Zed's Blog](https://zed.dev/blog/fastest-ai-code-editor)
6. [Nathan Sobo on The Future of Collaborative Code Editing — Semaphore](https://semaphore.io/blog/nathan-sobo)
7. [Visual Studio Code 2.2 vs. Zed 0.15 vs. Neovim 0.10: Editor Startup Time and Extension Performance — johal.in](https://johal.in/visual-studio-code-22-vs-zed-015-vs)
8. [Zed 1.0 Review — The Fastest AI Code Editor, Now With Parallel Agents — ChatForest](https://chatforest.com/reviews/zed-1-0-ai-code-editor-parallel-agents-rust-review/)
9. [Zed — Tracxn company profile](https://tracxn.com/d/companies/zed/__3jn1wtnWJjfLtgOSDXECkHFjHmFm7BkEKtVzcAABH3A)
10. [Goodbye Atom. Hello Zed. — Changelog podcast](https://changelog-2025-05-05.fly.dev/podcast/531)
11. [Zed Editor Review: Can It Replace VS Code? — ITechGuides](https://www.itechguides.com/zed-editor-review-can-the-rust-powered-code-editor-replace-vs-code/)
12. [Zed Editor Review 2026: Fast Enough to Switch? — DevToolReviews](https://www.devtoolreviews.com/reviews/zed-editor-review-2026)
13. [editor: Speed up multi cursor editing (PR #58510)](https://github.com/zed-industries/zed/pull/58510)
14. [A Commutative Replicated Data Type for Cooperative Editing (Treedoc, ICDCS 2009)](https://mshapiro.perso.lip6.fr/papers/2009/icdcs09-treedoc.pdf)
15. [Making Zed fast: A conversation with Richard Feldman — Baseten](https://www.baseten.co/blog/making-zed-fast-a-conversation-with-richard-feldman/)
16. [Collaborative Text Editing with Eg-walker: Better, Faster, Smaller (EuroSys 2025)](https://dl.acm.org/doi/10.1145/3689031.3696076)
17. [I stopped using VS Code after trying this less popular IDE — How-To Geek](https://www.howtogeek.com/i-stopped-using-vs-code-after-trying-this-less-popular-ide-and-it-isnt-antigravity/)
18. [Why IDEs Won't Die in the Age of AI Coding: Zed Founder Nathan Sobo — Sequoia Capital](https://sequoiacap.com/podcast/why-ides-wont-die-in-the-age-of-ai-coding-zed-founder-nathan-sobo)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 11, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Development tools and collaboration infrastructure › Build, deployment, and development tooling

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/zed-text-editor

English original: https://www.edgepedia.org/zed-text-editor
