zed
Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Top Related Projects
Visual Studio Code
:atom: The hackable text editor
Vim-fork focused on extensibility and usability
A post-modern modal text editor.
Lightning-fast and Powerful Code Editor written in Rust
IntelliJ IDEA Community Edition & IntelliJ Platform
Quick Overview
Zed is a high-performance, multiplayer code editor designed for speed and collaboration. It aims to provide a modern, efficient coding experience with features like real-time collaboration, AI-assisted coding, and a sleek user interface.
Pros
- Fast and responsive performance, even with large codebases
- Built-in real-time collaboration features
- AI-assisted coding capabilities
- Cross-platform support (macOS, Linux, Windows)
Cons
- Relatively new project, may have some stability issues
- Limited ecosystem of extensions compared to more established editors
- Learning curve for users accustomed to traditional IDEs
- Some advanced features may require a subscription
Getting Started
To get started with Zed:
- Visit the Zed website and download the appropriate version for your operating system.
- Install Zed following the instructions for your platform.
- Launch Zed and create a new project or open an existing one.
- To enable collaboration, click on the "Collaborate" button in the top right corner and invite team members.
- Explore the AI-assisted coding features by typing
/ai
in the editor and following the prompts.
For more detailed instructions and documentation, refer to the official Zed documentation.
Competitor Comparisons
Visual Studio Code
Pros of VS Code
- Extensive ecosystem with a vast library of extensions
- Robust debugging capabilities across multiple languages
- Large and active community for support and resources
Cons of VS Code
- Heavier resource usage, especially with multiple extensions
- Slower startup time compared to lightweight editors
- Can be overwhelming for beginners due to numerous features
Code Comparison
VS Code (settings.json):
{
"editor.fontSize": 14,
"editor.wordWrap": "on",
"files.autoSave": "afterDelay",
"workbench.colorTheme": "Monokai"
}
Zed (settings.yaml):
theme: Gruvbox Dark
vim_mode: true
font_size: 14
soft_wrap: true
autosave:
after_delay: 1000
VS Code offers more granular control over settings, while Zed uses a simpler YAML format. Both allow customization of common preferences like font size and auto-save behavior. VS Code's JSON structure may be more familiar to developers, but Zed's YAML approach is concise and readable.
:atom: The hackable text editor
Pros of Atom
- Mature and stable project with a large community and extensive plugin ecosystem
- Cross-platform support (Windows, macOS, Linux)
- Built-in package manager for easy installation and management of extensions
Cons of Atom
- Performance issues, especially with large files or projects
- Development has been discontinued, with no future updates planned
- Higher memory usage compared to more lightweight editors
Code Comparison
Atom (CoffeeScript):
class MyView extends View
@content: ->
@div class: 'my-view', =>
@h1 'Hello, Atom!'
@p 'This is a custom view.'
Zed (Rust):
#[derive(Debug)]
struct MyView {
title: String,
content: String,
}
impl MyView {
fn new() -> Self {
MyView {
title: String::from("Hello, Zed!"),
content: String::from("This is a custom view."),
}
}
}
While Atom uses CoffeeScript for its core functionality, Zed is built with Rust, which offers better performance and memory safety. Zed's modern architecture and use of Rust make it potentially faster and more efficient than Atom, especially for larger projects. However, Atom's extensive plugin ecosystem and established community support may still be advantageous for users who require specific functionality or are already familiar with the editor.
Vim-fork focused on extensibility and usability
Pros of Neovim
- Highly extensible and customizable through Lua scripting
- Lightweight and fast, suitable for older hardware
- Large ecosystem of plugins and active community support
Cons of Neovim
- Steeper learning curve, especially for users new to Vim-style editors
- Requires more manual configuration to achieve a modern IDE-like experience
- Terminal-based interface may be less intuitive for some users
Code Comparison
Neovim configuration (init.lua):
vim.opt.number = true
vim.opt.expandtab = true
vim.opt.shiftwidth = 2
vim.opt.softtabstop = 2
vim.g.mapleader = " "
Zed configuration (settings.json):
{
"theme": "One Dark",
"tab_size": 2,
"relative_line_numbers": true,
"soft_wrap": "none",
"vim_mode": true
}
While both editors offer customization, Neovim's configuration is more programmatic and flexible, allowing for complex logic and custom functions. Zed's configuration is simpler and more accessible for beginners, but may be less powerful for advanced users. Neovim's extensive plugin ecosystem provides more options for extending functionality, while Zed aims to offer a more integrated, out-of-the-box experience with modern features.
A post-modern modal text editor.
Pros of Helix
- Lightweight and fast, with minimal resource usage
- Highly customizable through configuration files
- Built-in language server protocol (LSP) support for many languages
Cons of Helix
- Steeper learning curve due to modal editing and unique keybindings
- Less extensive ecosystem and plugin support compared to Zed
- Limited GUI features and visual customization options
Code Comparison
Helix configuration (.toml
):
theme = "gruvbox"
[editor]
line-number = "relative"
mouse = false
Zed configuration (.json
):
{
"theme": "One Dark",
"vim_mode": true,
"font_size": 14
}
Both editors offer configuration options, but Helix uses TOML while Zed uses JSON. Helix's configuration tends to be more granular, while Zed's is often more high-level and user-friendly.
Helix is a terminal-based editor focused on efficiency and customization, appealing to users comfortable with command-line interfaces. Zed, on the other hand, is a modern GUI editor that balances power and ease of use, making it more accessible to a broader range of developers.
Lightning-fast and Powerful Code Editor written in Rust
Pros of Lapce
- Written in Rust, potentially offering better performance and memory safety
- More lightweight and focused on core editing features
- Highly customizable with a plugin system
Cons of Lapce
- Less mature project with fewer features compared to Zed
- Smaller community and ecosystem
- Limited built-in collaboration features
Code Comparison
Lapce (Rust):
pub fn handle_keypress(&mut self, key: KeyEvent) {
match key {
KeyEvent::Char(c) => self.insert_char(c),
KeyEvent::Backspace => self.delete_char(),
_ => {}
}
}
Zed (TypeScript):
handleKeyPress(event: KeyboardEvent) {
switch (event.key) {
case 'Backspace':
this.deleteChar();
break;
default:
this.insertChar(event.key);
}
}
Both editors implement similar functionality for handling keypresses, but Lapce's implementation in Rust may offer better performance and type safety. Zed's TypeScript code is more concise but may be less efficient. The actual performance difference would depend on various factors and optimizations in each project.
IntelliJ IDEA Community Edition & IntelliJ Platform
Pros of IntelliJ IDEA Community Edition
- Extensive language support and robust ecosystem of plugins
- Advanced code analysis and refactoring tools
- Mature and well-established IDE with a large user base
Cons of IntelliJ IDEA Community Edition
- Heavier resource usage and slower startup times
- Steeper learning curve for new users
- More complex configuration and setup process
Code Comparison
IntelliJ IDEA Community Edition:
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
Zed:
fn main() {
println!("Hello, World!");
}
IntelliJ IDEA Community Edition offers a more feature-rich environment with advanced code analysis and refactoring tools, making it suitable for large-scale projects and experienced developers. However, it comes at the cost of higher resource usage and a steeper learning curve.
Zed, on the other hand, focuses on simplicity and performance, providing a lightweight and fast editing experience. It may lack some of the advanced features of IntelliJ IDEA but offers a more streamlined workflow for developers who prefer a minimalist approach.
The code comparison showcases the difference in language support, with IntelliJ IDEA primarily targeting Java development, while Zed is more language-agnostic and supports modern languages like Rust out of the box.
Convert designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual CopilotREADME
Zed
Welcome to Zed, a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Installation
On macOS and Linux you can download Zed directly or install Zed via your local package manager.
Other platforms are not yet available:
- Windows (tracking issue)
- Web (tracking issue)
Developing Zed
- Building Zed for macOS
- Building Zed for Linux
- Building Zed for Windows
- Running Collaboration Locally
Contributing
See CONTRIBUTING.md for ways you can contribute to Zed.
Also... we're hiring! Check out our jobs page for open roles.
Licensing
License information for third party dependencies must be correctly provided for CI to pass.
We use cargo-about
to automatically comply with open source licenses. If CI is failing, check the following:
- Is it showing a
no license specified
error for a crate you've created? If so, addpublish = false
under[package]
in your crate's Cargo.toml. - Is the error
failed to satisfy license requirements
for a dependency? If so, first determine what license the project has and whether this system is sufficient to comply with this license's requirements. If you're unsure, ask a lawyer. Once you've verified that this system is acceptable add the license's SPDX identifier to theaccepted
array inscript/licenses/zed-licenses.toml
. - Is
cargo-about
unable to find the license for a dependency? If so, add a clarification field at the end ofscript/licenses/zed-licenses.toml
, as specified in the cargo-about book.
Top Related Projects
Visual Studio Code
:atom: The hackable text editor
Vim-fork focused on extensibility and usability
A post-modern modal text editor.
Lightning-fast and Powerful Code Editor written in Rust
IntelliJ IDEA Community Edition & IntelliJ Platform
Convert designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual Copilot