# Editing Code in Zed

> Core code editing features in Zed including multi-cursor, refactoring, code actions, and language server integration.

- 网址：https://funcoding.ai/agents/zed/editing-code/
- 来源：Zed 官方文档原文（英文），Apache-2.0 / GPL-3.0 许可，同步于 2026-10-11
- 官方原文：https://zed.dev/docs/editing-code

---
Zed provides tools to help you write and modify code efficiently. This section covers the core editing features that work alongside your language server.

## What's in This Section

- **[Code Completions](https://funcoding.ai/agents/zed/completions/)** — Autocomplete from language servers and AI-powered edit predictions
- **[Snippets](https://funcoding.ai/agents/zed/snippets/)** — Insert reusable code templates with tab stops
- **[Formatting & Linting](https://zed.dev/docs/configuring-languages#formatting-and-linting)** — Configure automatic code formatting and linter integration
- **[Diagnostics & Quick Fixes](https://funcoding.ai/agents/zed/diagnostics/)** — View errors, warnings, and apply fixes from your language server
- **[Multibuffers](https://funcoding.ai/agents/zed/multibuffers/)** — Edit multiple files simultaneously with multiple cursors

## How These Features Work Together

When you're editing code, Zed combines input from multiple sources:

1. **Language servers** provide completions, diagnostics, and quick fixes based on your project's types and structure
2. **[Edit predictions](https://funcoding.ai/agents/zed/ai/edit-prediction/)** suggest multi-character or multi-line changes as you type
3. **Multibuffers** let you apply changes across files in one operation

For example, you might:

- Rename a function using your language server's rename refactor
- See the results in a multibuffer showing all affected files
- Use multiple cursors to make additional edits across all locations
- Get immediate diagnostic feedback if something breaks

## Related Features

- [AI Features](https://funcoding.ai/agents/zed/ai/overview/) — Agentic editing, inline code transformations, and AI code completions
- [Configuring Languages](https://zed.dev/docs/configuring-languages) — Set up language servers for your project
- [Key Bindings](https://funcoding.ai/agents/zed/key-bindings/) — Customize keyboard shortcuts for editing commands
