Ghostboard pixel Skip to content

Zed: A Next-Gen Rust-Based Open Source Code Editor With AI

From the creators of the now defunct Atom, we have Zed editor with interesting capabilities.

Code editors are an essential piece of equipment in the arsenal of software developers, providing them with a reliable environment for writing, editing, and debugging all kinds of code.

They are known for superior handling of code, as they feature advanced debugging tools, syntax highlighting, auto-completion, extensions, and a host of other features.

Some popular names would be Vim, Kate editor, VS Code, and Sublime Text.

There's also another one that's increasing in popularity; it is from the people behind Atom and Tree-sitter. Called “Zed Editor”, it is an open-source code editor that you might want to try.

Zed Editor: A Modern Code Editor

a screenshot of zed editor

Put together mainly using Rust, Zed Editor is an offering by Zed Industries that uses three different licenses for distribution.

The source code for the editor is available under GPL 3.0, the server-side components under AGPL 3.0, and GPUI (the user interface framework) under Apache License 2.0.

⭐ Key Features

In a mixed bag of features such as support for running in CLI, diagnosing project-wide errors, support for split panes, markdown previews, and many more such features.

Here are some notable talking points of Zed Editor:

  • Cross-Platform
  • Optional AI Features
  • Real-Time Collaboration

💻 User Experience

I tested Zed Editor on a Fedora 40-equipped laptop by installing a third-party Flatpak package and putting in Rust code for a FOSS-themed quiz (generated using Gemini) to see how it performed.

By default, any added content is treated as plain text, I used the language switcher to change it to Rust so that I would get proper syntax highlighting, indentation, error detection, and other useful language-specific functions.

a screenshot of zed editor language selection functionality

The switch highlighted all the Rust elements correctly, and I then focused on Zed Editor's user interface. The overall feel of the editor was minimal, with all the important options being laid out nicely.

a screenshot of zed editor terminal panel in action running the man man command

The status bar below had some interesting panels. The first one I checked was the Terminal Panel, which, as the name suggests, lets you run commands, scripts, and facilitates interaction with system files or processes directly from within the editor.

I then moved to the Assistant Panel, which is home to various large language models that can be integrated into Zed Editor. There are options like Anthropic, GitHub Copilot Chat, Ollama, OpenAI, and Google AI 🤯

I went with Google AI and set up an API key on AI Studio to get started with the Assistant on Zed Editor. After selecting the Gemini 1.5 Pro model, I asked it if my code was correct.

It asked me for more details, so I pasted the code into the prompt window, and it confirmed that the code was indeed correct, with useful insights and suggestions about the code.

Technically, it was reviewing its code, as I had used Gemini (on a web browser) to concoct it in the first place.

The Zed Editor team has also recently introduced Zed AI in collaboration with Anthropic for assisting with coding, allowing for code generation, advanced context-powered interactions, and more.

a screenshot of zed editor collaboration features

The real-time collaboration features on Zed Editor are quite appealing too. To check them out, I had to log in with my GitHub account. After logging in, the Collab Panel opened up, and I could see many channels from the official Zed community.

I could chat with others, add collaborators to existing projects, join a call with the option to share my screen and track other collaborators' cursors, add new contacts, and carry out many other collaborative tasks.

One can also use extensions and themes to extend what Zed Editor can do. There are some nice pre-installed themes as well.

If you are a developer, you can test its coding capabilities better. Overall, to me, Zed Editor feels like a polished experience, and its clean design and handy features make it a viable choice for coders who do not mind tinkering around their experience for a change.

⚙️ Installing Zed Editor on Linux

You can install Zed Editor on any Linux distro using the official installation script:

curl -f https://zed.dev/install.sh | sh

If you are not a fan of scripts, you may visit the official website, and look for alternative downloads (like Flatpak) on its documentation page.

The source code is hosted over at GitHub for you to check out.

Suggested Read 📖

8 Best Open Source Code Editors for Linux
Looking for the best text editors in Linux for coding? Here’s a list of the best code open source code editors for Linux.

Here's why you should opt for It's FOSS Plus Membership

  • Even the biggest players in the Linux world don't care about desktop Linux users. We do.
  • We don't put content behind paywall. Your support keeps it open for everyone. Think of it like 'pay it forward'.
  • Don't like ads? With the Plus membership, you get an ad-free reading experience.
  • When millions of AI-generated content is being published daily, you read and learn from real human Linux users.
  • It costs just $2 a month, less than the cost of your favorite burger.

Latest