适用于 Windows 的 Zed 编辑器的非官方稳定版。通过 scoop 或 pwsh 脚本轻松安装。不隶属于 Zed Industries

一、软件介绍(文末提供下载)

 Zed,这是一款由 Atom 和 Tree-sitter 的创建者提供的高性能多人 Atom and Tree-sitter.。

二、macOS 和 Linux安装

在 macOS 和 Linux 上,您可以直接下载 Zed 或通过本地包管理器安装 Zed。

本地包下载地址:

夸克网盘分享

三、windows安装构建适用于 Windows 的 Zed

Repository 存储 库

Clone down the Zed repository.
克隆 Zed 存储库。

Dependencies 依赖

  • Install rustup 安装 rustup

  • Install Visual Studio with the optional components MSVC v*** - VS YYYY C++ x64/x86 build tools and MSVC v*** - VS YYYY C++ x64/x86 Spectre-mitigated libs (latest) (v*** is your VS version and YYYY is year when your VS was released. Pay attention to the architecture and change it to yours if needed.)
    使用可选组件 MSVC v*** - VS YYYY C++ x64/x86 build tools 安装 Visual Studio, MSVC v*** - VS YYYY C++ x64/x86 Spectre-mitigated libs (latest) 并且 ( v*** 是您的 VS 版本, YYYY 是 VS 发布的年份。注意架构,并在需要时将其更改为您的架构。

  • Install Windows 11 or 10 SDK depending on your system, but ensure that at least Windows 10 SDK version 2104 (10.0.20348.0) is installed on your machine. You can download it from the Windows SDK Archive
    根据您的系统安装 Windows 11 或 10 SDK,但请确保您的计算机上至少 Windows 10 SDK version 2104 (10.0.20348.0) 安装了 Windows 11 或 10 SDK。您可以从 Windows SDK 存档下载

  • Install CMake (required by a dependency). Or you can install it through Visual Studio Installer, then manually add the bin directory to your PATH, for example: C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin.
    安装 CMake(依赖项需要)。或者您可以通过 Visual Studio 安装程序安装它,然后手动将 bin 目录添加到您的 PATH ,例如: C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin 。

If you can't compile Zed, make sure that you have at least the following components installed:
如果您无法编译 Zed,请确保您至少安装了以下组件:

{
  "version": "1.0",
  "components": [
    "Microsoft.VisualStudio.Component.CoreEditor",
    "Microsoft.VisualStudio.Workload.CoreEditor",
    "Microsoft.VisualStudio.Component.VC.Tools.x86.x64",
    "Microsoft.VisualStudio.ComponentGroup.WebToolsExtensions.CMake",
    "Microsoft.VisualStudio.Component.VC.CMake.Project",
    "Microsoft.VisualStudio.Component.Windows11SDK.26100",
    "Microsoft.VisualStudio.Component.VC.Runtimes.x86.x64.Spectre"
  ],
  "extensions": []
}

The list can be obtained as follows:
该列表可以按如下方式获取:

  • Open the Visual Studio Installer
    打开 Visual Studio 安装程序

  • Click on More in the Installed tab
    点击标签 More 页中的 Installed

  • Click on Export configuration  Export configuration 点击

Backend dependencies 后端依赖项

This section is still in development. The instructions are not yet complete.
此部分仍在开发中。说明尚未完成。

If you are developing collaborative features of Zed, you'll need to install the dependencies of zed's collab server:
如果您正在开发 Zed 的协作功能,则需要安装 zed collab 服务器的依赖项:

  • Install Postgres 安装 Postgres

  • Install Livekit, optionally you can add the livekit-server binary to your PATH.
    安装 Livekit,您可以选择将 livekit-server 二进制文件添加到您的 PATH .

Alternatively, if you have Docker installed you can bring up all the collab dependencies using Docker Compose:
或者,如果您安装了 Docker,则可以使用 Docker Compose 启动所有 collab 依赖项:

docker compose up -d

Notes

You should modify the pg_hba.conf file in the data directory to use trust instead of scram-sha-256 for the host method. Otherwise, the connection will fail with the error password authentication failed. The pg_hba.conf file typically locates at C:\Program Files\PostgreSQL\17\data\pg_hba.conf. After the modification, the file should look like this:
您应该修改 pg_hba.conf data 目录中的文件 to use trust 而不是 scram-sha-256 for host the method。否则,连接将失败并显示错误 password authentication failed 。 pg_hba.conf 该文件通常位于 C:\Program Files\PostgreSQL\17\data\pg_hba.conf 。修改后,文件应如下所示:

<span style="background-color:var(--bgColor-muted, var(--color-canvas-subtle))"><span style="color:#1f2328"><span style="color:var(--fgColor-default, var(--color-fg-default))"><span style="background-color:var(--bgColor-muted, var(--color-canvas-subtle))"><code># IPv4 local connections:
host    all             all             127.0.0.1/32            trust
# IPv6 local connections:
host    all             all             ::1/128                 trust
</code></span></span></span></span>

Also, if you are using a non-latin Windows version, you must modify thelc_messages parameter in the postgresql.conf file in the data directory to English_United States.1252 (or whatever UTF8-compatible encoding you have). Otherwise, the database will panic. The postgresql.conf file should look like this:
此外,如果您使用的是非拉丁 Windows 版本,则必须将 data 目录中 postgresql.conf 文件中的 lc_messages 参数修改为 English_United States.1252 (或您拥有的任何 UTF8 兼容编码)。否则,数据库将出现 panic。该文件 postgresql.conf 应如下所示:

<span style="background-color:var(--bgColor-muted, var(--color-canvas-subtle))"><span style="color:#1f2328"><span style="color:var(--fgColor-default, var(--color-fg-default))"><span style="background-color:var(--bgColor-muted, var(--color-canvas-subtle))"><code># lc_messages = 'Chinese (Simplified)_China.936' # locale for system error message strings
lc_messages = 'English_United States.1252'
</code></span></span></span></span>

After this, you should restart the postgresql service. Press the win key + R to launch the Run window. Type the services.msc and hit the OK button to open the Services Manager. Then, find the postgresql-x64-XX service, right-click on it, and select Restart.
在此之后,您应该重新启动 postgresql 该服务。按 + win R 键启动 Run 窗口。键入 services.msc 并点击 OK 按钮以打开服务管理器。然后,找到该服务 postgresql-x64-XX ,右键单击它,然后选择 Restart 。

Building from source 从源构建

Once you have the dependencies installed, you can build Zed using Cargo.
安装依赖项后,您可以使用 Cargo 构建 Zed。

For a debug build:
对于调试版本:

cargo run

For a release build:
对于发布版本:

cargo run --release

And to run the tests:
要运行测试,请执行以下作:

cargo test --workspace

Installing from msys2 从 msys2 安装

MSYS2 distribution provides Zed as a package mingw-w64-zed. The package is available for UCRT64, MINGW64 and CLANG64 repositories. To download it, run
MSYS2 发行版以 mingw-w64-zed 包的形式提供 Zed。该软件包可用于 UCRT64、MINGW64 和 CLANG64 存储库。要下载它,请运行

pacman -Syu
pacman -S $MINGW_PACKAGE_PREFIX-zed

then you can run zed in a shell.
然后,您可以在 shell zed 中运行。

You can see the build script for more details on build process.
有关构建过程的更多详细信息,您可以查看构建脚本。

Please, report any issue in msys2/MINGW-packages/issues first.
请先在 msys2/MINGW-packages/issues 中报告任何问题。

Note that collab is not supported for msys2.
请注意,msys2 不支持此功能 collab 。

如果碰到问题,详情参考zed/docs/src/development/windows.md at main · zed-industries/zed · GitHub

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:/a/965752.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

使用Ollama本地部署deepseek

1、下载安装Ollama 前往下载页面 https://ollama.com/download下载好安装包&#xff0c;如同安装软件一样&#xff0c;直接安装即可 win中默认为C盘&#xff0c;如果需要修改到其他盘&#xff0c;查找具体教程 运行list命令&#xff0c;检查是否安装成功 2、修改模型下载的…

约束布局属性学习

1、layout_constraintHorizontal_bias layout_constraintHorizontal_bias 是 ConstraintLayout 中的一个重要属性&#xff0c;用于控制一个视图在父视图或相关视图中水平位置的偏移。这种偏移通过在0到1之间的浮点值来设置&#xff0c;0代表完全靠近左边或起始位置&#xff0c…

Windows双网卡冲突导致网页加载过慢的解决方法 (修改跃点无效 远程桌面连接)

【本文发布于https://blog.csdn.net/Stack_/article/details/145494160&#xff0c;未经许可不得转载&#xff0c;转载须注明出处】 办公室内&#xff0c;我的笔记本和台式机都连接WIFI进行上网&#xff0c;网段是192.168.0.x&#xff0c;网关192.168.0.101 现在要通过Windows自…

轻量级服务器http-server

安装 sudo npm install http-server -g 运行 1. 直接去到要跑起来的目录&#xff0c;在终端输入 cd xxxx文件夹http-server //只输入http-server的话&#xff0c;更新了代码后&#xff0c;页面不会同步更新http-server -c-1 //同步更新页面http-server -a 127.0.0.1 -p 808…

代码随想录算法【Day38】

Day38 322. 零钱兑换 思路 完全背包 代码 class Solution { public:int coinChange(vector<int>& coins, int amount) {vector<int> dp(amount 1, INT_MAX);dp[0] 0;for (int i 0; i < coins.size(); i) { // 遍历物品for (int j coins[i]; j <…

python+opencv+open3d实现鼠标手画多边形裁剪分割点云操作

👑主页:吾名招财 👓简介:工科学硕,研究方向机器视觉,爱好较广泛… ​💫签名:面朝大海,春暖花开! python+opencv+open3d实现鼠标手画多边形裁剪分割点云操作 引言使用效果:代码pcd_roi_crop.py:引言 当我们想对一个不规则物体的图像或者点云裁剪时,直接手动输入…

STM32的HAL库开发---通用定时器(TIMER)---定时器脉冲计数

一、脉冲计数实验原理 1、 外部时钟模式1&#xff1a;核心为蓝色部分的时基单元&#xff0c;时基单元的时钟源可以来自四种&#xff0c;分别是内部时钟PCLK、外部时钟模式1&#xff0c;外部时钟模式2、内部定时器触发&#xff08;级联&#xff09;。而脉冲计数就是使用外部时钟…

Redis05 - 性能调优和缓存问题

Redis性能调优和缓存问题 文章目录 Redis性能调优和缓存问题一&#xff1a;链路追踪判断是不是redis出了问题二&#xff1a;redis变慢原因1&#xff1a;使用复杂度过高的命令(*)1.1&#xff1a;查看redis慢日志1.2&#xff1a;延迟变大原因分析1.3&#xff1a;解决方案 2&#…

漫步 C++ 之途,领略引用的独特风姿

在C中&#xff0c;引用&#xff08;Reference&#xff09;是一种非常有用的特性&#xff0c;它允许为一个变量创建一个别名&#xff08;Alias&#xff09;。引用在很多情况下可以替代指针&#xff0c;但使用起来更加方便和安全。以下是对C引用的详细介绍&#xff0c;包括其定义…

Spring Boot Web 入门

目录 Spring Boot Web 是 Spring Boot 框架的一个重要模块&#xff0c;它简化了基于 Spring 的 Web 应用程序的开发过程。以下是一个 Spring Boot Web 项目的入门指南&#xff0c;涵盖了项目创建、代码编写、运行等关键步骤。 1. 项目创建 使用 Spring Initializr 使用 IDE …

Java 多线程、线程同步、线程池

一. 线程 1. 线程&#xff1a;线程(Thread)是一个程序内部的一条执行流程。 2. 程序中如果只有一条执行流程&#xff0c;那这个程序就是单线程的程序。 二. 多线程 多线程是指从硬件上实现多条执行流程的技术(多条线程由CPU负责调度) Javas是通过java.lang.Thread类的对象来代…

20.[前端开发]Day20-王者荣耀项目实战(三)

01_(掌握)王者荣耀-main-赛事新闻列表实现 <!DOCTYPE html> <html lang"zh-CN"> <head><meta charset"UTF-8"><meta http-equiv"X-UA-Compatible" content"IEedge"><meta name"viewport" …

【Langchain学习笔记(一)】Langchain介绍

Langchain介绍 Langchain介绍前言1、Langchain 是什么2、为什么要用 Langchain3、Langchain 的核心4、Langchain 的底层原理5、Langchain 的应用场景 Langchain介绍 前言 想象一下&#xff0c;如果你能让聊天机器人不仅仅回答通用问题&#xff0c;还能从你自己的数据库或文件…

IDEA2024版本创建Sping项目无法选择Java 8

目录 一、背景二、解决方式&#xff08;替换创建项目的源地址&#xff09; 一、背景 IDEA2024创建一个springboot的项目&#xff0c;本地安装的是1.8&#xff0c;但是在使用Spring Initializr创建项目时&#xff0c;发现版本只有17、21、23。 二、解决方式&#xff08;替换创…

C++11(四)

目录 包装器 function包装器 bind绑定 更改实参传递的顺序和实参传递的个数 线程库 本期我们将继续进行C11新特性的学习。 包装器 function包装器 function包装器&#xff0c;我们也称之为适配器&#xff0c;本质上就是一个类模板&#xff0c;为什么要引入function包…

MySQL 数据库编程-C++

目录 1 数据库基本知识 1.1 MYSQL常见命令 1.2 SQL注入 1.3 ORM框架 1 数据库基本知识 MySQL 为关系型数据库(Relational Database Management System), 这种所谓的"关系型"可以理解为"表格"的概念, 一个关系型数据库由一个或数个表格组成&#xff1a…

【算法篇】贪心算法

目录 贪心算法 贪心算法实际应用 一&#xff0c;零钱找回问题 二&#xff0c;活动选择问题 三&#xff0c;分数背包问题 将数组和减半的最小操作次数 最大数 贪心算法 贪心算法&#xff0c;是一种在每一步选择中都采取当前状态下的最优策略&#xff0c;期望得到全局最优…

5 计算机网络

5 计算机网络 5.1 OSI/RM七层模型 5.2 TCP/IP协议簇 5.2.1:常见协议基础 一、 TCP是可靠的&#xff0c;效率低的&#xff1b; 1.HTTP协议端口默认80&#xff0c;HTTPSSL之后成为HTTPS协议默认端口443。 2.对于0~1023一般是默认的公共端口不需要注册&#xff0c;1024以后的则需…

动态规划LeetCode-1035.不相交的线

在两条独立的水平线上按给定的顺序写下 nums1 和 nums2 中的整数。 现在&#xff0c;可以绘制一些连接两个数字 nums1[i] 和 nums2[j] 的直线&#xff0c;这些直线需要同时满足&#xff1a; nums1[i] nums2[j]且绘制的直线不与任何其他连线&#xff08;非水平线&#xff09;相…

禅道社区版项目管理软件部署(记录篇)

系统要求&#xff08;这里推荐使用docker容器化方式&#xff09;安装前的准备Docker快速安装最后通过查看地址验证是否部署成功开始界面化安装配置 禅道&#xff08;ZenTao&#xff09;是一款国产开源的项目管理软件&#xff0c;专注于敏捷开发流程&#xff0c;支持 Scrum 和 K…