zed
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "zed":https://skillpi.com/zh/skills/deepskill-6824cb9ac0348e587b4f5765cc3daf00bc5cf5c68843e2f2312c14e5d8f27ea3。安装前核对上游来源和版本:https://skillhub.cn/skills/user_3c6cb52e/zed-high-performance-multiplayer-code-editor。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
skillhub.cn
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
Zed 是由 Atom 和 Tree-sitter 创作者开发的高性能多用户代码编辑器,使用 Rust 编写,具有原生 AI 集成、实时协作和 GPU 加速渲染能力,可在 macOS、Linux 和 Windows 上提供高速编辑体验。
介绍来源: third_party · user_3c6cb52e · 1.0.0 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 适合谁
- 来源文档未说明。
- 输入和输出
- 来源文档未说明。
- 软件、账号及付费要求
- 来源文档未说明。
- 限制与区别
- 来源文档未说明。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: zed
description: Expert guidance for Zed, the high-performance code editor built in Rust with native collaboration, AI integration, and GPU-accelerated rendering. Helps developers configure Zed, create custom extensions, set up collaborative editing sessions, and integrate AI assistants for productive coding.
license: Apache-2.0
compatibility: No special requirements
metadata:
author: terminal-skills
version: 1.0.0
category: development
tags:
- editor
- ide
- collaboration
- rust
- performanceZed — High-Performance Code Editor
Overview
Zed, the high-performance code editor built in Rust with native collaboration, AI integration, and GPU-accelerated rendering. Helps developers configure Zed, create custom extensions, set up collaborative editing sessions, and integrate AI assistants for productive coding.
Instructions
Configuration
Customize Zed through its JSON settings:
// ~/.config/zed/settings.json — Main configuration file
{
// Editor appearance and behavior
"theme": "One Dark",
"ui_font_size": 14,
"buffer_font_size": 14,
"buffer_font_family": "JetBrains Mono",
"buffer_line_height": { "custom": 1.6 },
// Vim mode (built-in, no extension needed)
"vim_mode": true,
"vim": {
"use_system_clipboard": "always",
"use_smartcase_find": true
},
// Tab and indentation
"tab_size": 2,
"hard_tabs": false,
"format_on_save": "on",
"formatter": "language_server",
// Git integration
"git": {
"inline_blame": { "enabled": true, "delay_ms": 500 },
"git_gutter": "tracked_files"
},
// AI Assistant configuration
"assistant": {
"enabled": true,
"default_model": {
"provider": "anthropic",
"model": "claude-sonnet-4-20250514"
},
"version": "2" // Use Assistant v2 panel
},
// Inline completions (code suggestions)
"inline_completions": {
"disabled_globs": [".env", "*.pem", "*.key"]
},
// Language-specific settings
"languages": {
"TypeScript": {
"tab_size": 2,
"formatter": { "external": { "command": "prettier", "arguments": ["--stdin-filepath", "{buffer_path}"] } }
},
"Python": {
"tab_size": 4,
"formatter": { "external": { "command": "ruff", "arguments": ["format", "--stdin-filename", "{buffer_path}"] } }
},
"Rust": {
"tab_size": 4,
"formatter": "language_server"
}
},
// Terminal
"terminal": {
"shell": { "program": "zsh" },
"font_size": 13,
"line_height": { "custom": 1.4 },
"copy_on_select": true
},
// File tree
"project_panel": {
"auto_reveal_entries": true,
"auto_fold_dirs": true,
"file_icons": true
},
// Performance
"autosave": { "after_delay": { "milliseconds": 1000 } },
"soft_wrap": "editor_width"
}
Key Bindings
Configure custom keyboard shortcuts:
// ~/.config/zed/keymap.json — Custom keybindings
[
// Quick file switching (like VS Code Cmd+P)
{
"context": "Workspace",
"bindings": {
"cmd-p": "file_finder::Toggle",
"cmd-shift-p": "command_palette::Toggle",
"cmd-shift-f": "project_search::ToggleFocus",
"cmd-b": "workspace::ToggleLeftDock",
"cmd-j": "terminal_panel::ToggleFocus",
// Custom: open AI assistant panel
"cmd-shift-a": "assistant::ToggleFocus",
// Custom: toggle inline AI completions
"cmd-shift-i": "editor::ToggleInlineCompletions"
}
},
// Editor-specific bindings
{
"context": "Editor",
"bindings": {
"cmd-d": "editor::SelectNext", // Multi-cursor select next match
"cmd-shift-l": "editor::SelectAllMatches", // Select all occurrences
"alt-up": "editor::MoveLineUp",
"alt-down": "editor::MoveLineDown",
"cmd-shift-k": "editor::DeleteLine",
"cmd-/": "editor::ToggleComments",
// Quick AI actions
"ctrl-l": "assistant::InlineAssist" // Inline AI edit at cursor
}
},
// Vim-specific overrides
{
"context": "VimControl",
"bindings": {
"space f": "file_finder::Toggle",
"space g": "project_search::ToggleFocus",
"space e": "project_panel::ToggleFocus",
"space a": "assistant::ToggleFocus",
"space t": "terminal_panel::ToggleFocus"
}
}
]
Collaborative Editing
Set up real-time pair programming sessions:
## How Collaboration Works in Zed
1. **Start a session**: Click "Share" in the title bar or run `collaboration::ShareProject`
2. **Share the link**: Copy the invite link and send to teammates
3. **Real-time editing**: All participants see each other's cursors and edits instantly
4. **Follow mode**: Click a collaborator's avatar to follow their cursor (see what they see)
5. **Voice chat**: Built-in voice channels — no need for a separate call
### Collaboration Features
- **Shared terminal**: Collaborators can see your terminal output
- **Shared diagnostics**: LSP errors and warnings are visible to all participants
- **Conflict-free**: Uses CRDT (similar to Yjs) for concurrent edit resolution
- **Low latency**: Edits propagate in <50ms on good connections
AI Assistant Usage
Leverage Zed's integrated AI for coding tasks:
## AI Workflows in Zed
### Inline Assist (Ctrl+L)
Select code → Ctrl+L → type instruction:
- "Add error handling to this function"
- "Refactor to use async/await"
- "Add TypeScript types"
- "Write a unit test for this"
### Assistant Panel (Cmd+Shift+A)
Full conversation with AI, with context from your codebase:
- Drag files into the panel to add them as context
- Use `/file` to reference specific files
- Use `/tab` to include all open tabs as context
- Ask architectural questions about your codebase
### Slash Commands in Assistant
- `/file path/to/file.ts` — Include file content as context
- `/tab` — Include all open editor tabs
- `/diagnostics` — Include current LSP errors/warnings
- `/selection` — Include currently selected code
- `/terminal` — Include recent terminal output
Extension Development
Build custom extensions for Zed:
// extensions/my-extension/src/lib.rs — Zed extension in Rust (WASM)
use zed_extension_api::{self as zed, Result};
struct MyExtension;
impl zed::Extension for MyExtension {
fn new() -> Self { MyExtension }
fn language_server_command(
&mut self,
_language_server_id: &zed::LanguageServerId,
worktree: &zed::Worktree,
) -> Result<zed::Command> {
// Configure a custom language server
Ok(zed::Command {
command: "my-lsp-binary".to_string(),
args: vec!["--stdio".to_string()],
env: Default::default(),
})
}
}
zed::register_extension!(MyExtension);
# extensions/my-extension/extension.toml — Extension manifest
[extension]
id = "my-extension"
name = "My Extension"
version = "0.1.0"
schema_version = 1
authors = ["Your Name"]
description = "Custom language support for Zed"
repository = "https://github.com/you/zed-my-extension"
[grammars.my-language]
repository = "https://github.com/tree-sitter/tree-sitter-my-language"
commit = "abc123"
[language_servers.my-lsp]
language = "MyLanguage"
Installation
# macOS (official)
brew install --cask zed
# Linux
curl -f https://zed.dev/install.sh | sh
# Build from source
git clone https://github.com/zed-industries/zed.git
cd zed
cargo build --release
Examples
Example 1: Setting up Zed with a custom configuration
User request:
I just installed Zed. Help me configure it for my TypeScript + React workflow with my preferred keybindings.
The agent creates the configuration file with TypeScript-aware settings, configures relevant plugins/extensions for React development, sets up keyboard shortcuts matching the user's preferences, and verifies the setup works correctly.
Example 2: Extending Zed with custom functionality
User request:
I want to add a custom key bindings to Zed. How do I build one?
The agent scaffolds the extension/plugin project, implements the core functionality following Zed's API patterns, adds configuration options, and provides testing instructions to verify it works end-to-end.
Guidelines
- Use Vim mode — Zed's Vim emulation is excellent and first-class; combine with Zed-specific keybindings for best productivity
- Configure per-language formatting — Set formatters per language (Prettier for JS, Ruff for Python, rustfmt for Rust)
- AI context matters — Drag relevant files into the assistant panel; more context = better AI responses
- Inline assist for quick edits — Select code + Ctrl+L is faster than copy-pasting into a chat
- Use follow mode in pairing — Click a collaborator's avatar to see exactly what they see; great for code reviews
- Autosave with delay — 1000ms delay avoids constant disk writes while keeping files saved
- Extensions are WASM — Write extensions in Rust compiled to WebAssembly; they run in a sandbox for security
- Keyboard-first design — Learn
Cmd+P(files),Cmd+Shift+P(commands),Cmd+T(symbols) for fast navigation
当前收录版本
1.0.0
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供 Zed 编辑器从基础配置到高级扩展开发的完整指导
- 覆盖 AI 集成、实时协作、自定义扩展等核心生产力场景
- 面向开发者群体,解决代码编辑器配置的实际痛点
亮点
- description 清晰界定 Skill 范围:Zed 编辑器专家指导
- 涵盖配置、协作、AI、扩展等关键触发场景,边界明确
待提升项
-
文档长度略超建议值 原报告严重程度:轻微
SKILL.md 内容约 480 行,略超过 500 行建议上限
改进建议:可考虑将部分配置示例移至独立文件并通过引用方式引入
亮点
- 文档结构完整,分章节清晰:Overview、Instructions、Installation、Examples、Guidelines
- 提供 JSON 配置示例、Rust 扩展代码、协作流程说明等实质性内容
- frontmatter 完整,包含 name、description、license、compatibility、metadata
亮点
- 使用 Zed 官方安装命令(brew/curl),来源可靠
- 配置文件格式符合 Zed 官方规范,参数正确
- 协作、AI、扩展开发等核心功能均有可执行的具体步骤
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
安装或获取外部依赖
使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。
主文档提及 · 第 266 行
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- github.com
- zed.dev
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
来源文档未说明。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。