search
HomeTechnology peripheralsAIRust-based Zed editor has been open sourced, with built-in support for OpenAI and GitHub Copilot

Author丨Tim Anderson

Compilation丨Noah

produced | 51CTO Technology Stack (WeChat ID: blog51cto)

Zed Editor Project It is still in the pre-release stage and is open source under AGPL, GPL and Apache licenses. The editor features high performance and multiple AI-assisted options, but is currently only available on the Mac platform.

Nathan Sobo explained in a post that in Project Zed’s code base on GitHub, the editor part is licensed under the GPL, and the server-side components The AGPL license is used, and the GPUI (GPU Accelerated User Interface) part uses the Apache 2.0 license. GPUI is a Rust UI framework developed by the Zed team. Such a license choice ensures the openness and accessibility of the code, allowing Zed to be widely used and contributed to in the open source community.

Sobo previously created the Atom editor and the Electron framework. The Electron framework is used by VS Code, the world's most popular editor and lightweight IDE. Electron is built using Chromium browser components and the V8 JavaScript engine, while Zed has a completely different code base. It is written in Rust and compiled into native code.

Unlike VS Code, which has more than 55,000 extension plug-ins, Zed currently only has a preliminary plug-in model and has not formed a complete extension ecosystem; its FAQ states, "In Zed We will not add a plug-in system before open source, but once the open source is completed, we will work on the development of extensibility functions." This indicates that there will be more work in this area in the near future.

Thanks to Rust's high performance and lack of plug-ins, Zed runs extremely fast, providing a solution to developers' biggest pain point with VS Code - performance issues.

A developer commented on Zed News and said: "VSCode always feels extremely slow to me... VSCode's lag in basic code inspection and syntax detection makes me extremely annoyed. , and eventually had to give up using it."

Another developer said: "For those who haven't tried Zed, it's the best experience in my 25 years of development. The most distracting GUI editor I've ever used. It's hard to describe how much my concentration improved when I got rid of the various icons, menus, colors and other Christmas tree-like scenes in other editors."

Although the AI ​​assistance function provided by Zed is still rough in experience, developers who prefer maximum control may be satisfied. Zed supports both GitHub Copilot and OpenAI.

Regarding the integration of Copilot, Zed team member Mikayla Maki said: "It is crucial to balance its visual and psychological burden, because an overly aggressive Copilot can be counterproductive and interfere with existing auto-completions such as LSP features such as Copilot. Therefore, we have introduced settings to disable Copilot by language, increase the text suggestion delay by 75 milliseconds, and prioritize the language's own LSP (Language Server Protocol) over Copilot in the event of a conflict."

基于Rust的Zed编辑器已开源,内置对OpenAI和GitHub Copilot的支持Picture

Zed Editor’s OpenAI Assistant Panel is a highly configurable and unique feature. Developers can choose the model type and change the model at any time, even during a conversation with the AI. To use this feature, you need to have an OpenAI account and configure an API key in Zed. These keys are billed by the number of tokens used, and Zed will always display the number of tokens remaining for the selected model.

Interactions with OpenAI's large language models are submitted via CMD-Enter instead of just the Enter key, the idea is to keep it as close to a regular editor feel as possible, so Pressing the Enter key will only insert a new line." This also means that it is difficult for users to accidentally consume tokens. The response content is returned in real time, and if it seems unhelpful, the request can be canceled by pressing the Escape key.

In addition, Zed also has an inline assistant function that can view contextual information of the surrounding code. Marshall Bowers, another member of the Zed team, has posted about using AI for inline document writing and translating code from one template system to another, such as performing tasks like “Rewrite this HTML using auk’s DSL method. , just like the post_link function above" command. He said that when processing most of the template code, AI was ultimately used to assist.

According to the roadmap, in the future Zed will support AI assistance functions without OpenAI keys, while providing inline intelligent assistance in the terminal, a simplified assistant interface, and enabling AI to "Access buffers, files, LSPs, terminal prompts, etc. in inline state".

In addition to the lack of extensions, Zed has some other problems. Currently, support for languages ​​such as Rust, TypeScript, and Python is relatively good, and many other languages ​​are partially supported, but there are also some languages, such as Microsoft's C#, that have not yet received any support, although the feature description mentions: "Active development is underway to use Zed The ability to connect to any language server".

Another problem is that Zed is currently only available on the Mac platform. There is a GitHub issue regarding this issue stating that there are plans to add support for other platforms. Linux and web-side support are included in the roadmap (the web-side may adopt WebAssembly technology that Rust can compile to target), but there is no mention of the Windows platform at the time of writing, suggesting that development of the Windows version may take more time, or Users need to use it indirectly through Windows Subsystem for Linux (WSL).

Reference link: https://devclass.com/2024/01/25/rust-based-zed-editor-now-open-source-with-built-in-support -for-openai-and-github-copilot/

The above is the detailed content of Rust-based Zed editor has been open sourced, with built-in support for OpenAI and GitHub Copilot. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:51CTO.COM. If there is any infringement, please contact admin@php.cn delete
From Friction To Flow: How AI Is Reshaping Legal WorkFrom Friction To Flow: How AI Is Reshaping Legal WorkMay 09, 2025 am 11:29 AM

The legal tech revolution is gaining momentum, pushing legal professionals to actively embrace AI solutions. Passive resistance is no longer a viable option for those aiming to stay competitive. Why is Technology Adoption Crucial? Legal professional

This Is What AI Thinks Of You And Knows About YouThis Is What AI Thinks Of You And Knows About YouMay 09, 2025 am 11:24 AM

Many assume interactions with AI are anonymous, a stark contrast to human communication. However, AI actively profiles users during every chat. Every prompt, every word, is analyzed and categorized. Let's explore this critical aspect of the AI revo

7 Steps To Building A Thriving, AI-Ready Corporate Culture7 Steps To Building A Thriving, AI-Ready Corporate CultureMay 09, 2025 am 11:23 AM

A successful artificial intelligence strategy cannot be separated from strong corporate culture support. As Peter Drucker said, business operations depend on people, and so does the success of artificial intelligence. For organizations that actively embrace artificial intelligence, building a corporate culture that adapts to AI is crucial, and it even determines the success or failure of AI strategies. West Monroe recently released a practical guide to building a thriving AI-friendly corporate culture, and here are some key points: 1. Clarify the success model of AI: First of all, we must have a clear vision of how AI can empower business. An ideal AI operation culture can achieve a natural integration of work processes between humans and AI systems. AI is good at certain tasks, while humans are good at creativity and judgment

Netflix New Scroll, Meta AI's Game Changers, Neuralink Valued At $8.5 BillionNetflix New Scroll, Meta AI's Game Changers, Neuralink Valued At $8.5 BillionMay 09, 2025 am 11:22 AM

Meta upgrades AI assistant application, and the era of wearable AI is coming! The app, designed to compete with ChatGPT, offers standard AI features such as text, voice interaction, image generation and web search, but has now added geolocation capabilities for the first time. This means that Meta AI knows where you are and what you are viewing when answering your question. It uses your interests, location, profile and activity information to provide the latest situational information that was not possible before. The app also supports real-time translation, which completely changed the AI ​​experience on Ray-Ban glasses and greatly improved its usefulness. The imposition of tariffs on foreign films is a naked exercise of power over the media and culture. If implemented, this will accelerate toward AI and virtual production

Take These Steps Today To Protect Yourself Against AI CybercrimeTake These Steps Today To Protect Yourself Against AI CybercrimeMay 09, 2025 am 11:19 AM

Artificial intelligence is revolutionizing the field of cybercrime, which forces us to learn new defensive skills. Cyber ​​criminals are increasingly using powerful artificial intelligence technologies such as deep forgery and intelligent cyberattacks to fraud and destruction at an unprecedented scale. It is reported that 87% of global businesses have been targeted for AI cybercrime over the past year. So, how can we avoid becoming victims of this wave of smart crimes? Let’s explore how to identify risks and take protective measures at the individual and organizational level. How cybercriminals use artificial intelligence As technology advances, criminals are constantly looking for new ways to attack individuals, businesses and governments. The widespread use of artificial intelligence may be the latest aspect, but its potential harm is unprecedented. In particular, artificial intelligence

A Symbiotic Dance: Navigating Loops Of Artificial And Natural PerceptionA Symbiotic Dance: Navigating Loops Of Artificial And Natural PerceptionMay 09, 2025 am 11:13 AM

The intricate relationship between artificial intelligence (AI) and human intelligence (NI) is best understood as a feedback loop. Humans create AI, training it on data generated by human activity to enhance or replicate human capabilities. This AI

AI's Biggest Secret — Creators Don't Understand It, Experts SplitAI's Biggest Secret — Creators Don't Understand It, Experts SplitMay 09, 2025 am 11:09 AM

Anthropic's recent statement, highlighting the lack of understanding surrounding cutting-edge AI models, has sparked a heated debate among experts. Is this opacity a genuine technological crisis, or simply a temporary hurdle on the path to more soph

Bulbul-V2 by Sarvam AI: India's Best TTS ModelBulbul-V2 by Sarvam AI: India's Best TTS ModelMay 09, 2025 am 10:52 AM

India is a diverse country with a rich tapestry of languages, making seamless communication across regions a persistent challenge. However, Sarvam’s Bulbul-V2 is helping to bridge this gap with its advanced text-to-speech (TTS) t

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version