Skip to content
TheChatArchiveThe Chat Archive
gpt-4.1-mini-2025-04-14· OpenAIHugging Face LMArena Human Preference 140K

Can you give me a step by step of building Zed IDE on windows?

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with grok-3-mini-beta’s answer.
  1. User

    Can you give me a step by step of building Zed IDE on windows?

  2. Assistant

    Certainly! Here’s a step-by-step guide to building Zed IDE on Windows. Zed is a modern, fast code editor written primarily in Rust and TypeScript, and it uses the Tauri framework for its desktop app shell.


    Step-by-Step Guide to Building Zed IDE on Windows

    Prerequisites

    1. Windows 10 or 11 (64-bit)
    2. Git — for cloning the repository
      Download and install from: https://git-scm.com/download/win
    3. Rust toolchain — for building Rust code
      Install from https://rustup.rs/
      After installation, open a new terminal and run:
      rustup update
      
    4. Node.js and npm — for building the frontend (TypeScript)
      Download and install from: https://nodejs.org/en/download/
      (Recommended: LTS version)
    5. Visual Studio Build Tools — for compiling native dependencies
      Download from: https://visualstudio.microsoft.com/visual-cpp-build-tools/
      During installation, select Desktop development with C++ workload.
    6. Tauri prerequisites — Tauri requires some additional tools:
      • Install Windows Subsystem for Linux (WSL) or ensure you have PowerShell 7+ and Windows SDK installed.
      • Install cargo-tauri CLI:
        cargo install tauri-cli
        

    Step 1: Clone the Zed IDE repository

    Open PowerShell or Command Prompt and run:

    git clone https://github.com/zed-industries/zed.git
    cd zed
    

    Step 2: Install Node.js dependencies

    Inside the zed directory, run:

    npm install
    

    This will install all the JavaScript/TypeScript dependencies.


    Step 3: Build the Rust backend

    Zed’s backend is written in Rust. To build it, run:

    cargo build --release
    

    This will compile the Rust code in release mode.


    Step 4: Build the frontend

    Run the frontend build command:

    npm run build
    

    This compiles the TypeScript and bundles the frontend assets.


    Step 5: Build the Tauri app

    Now, build the full desktop app with Tauri:

    npm run tauri build
    

    This command will package the Rust backend and the frontend into a Windows executable.


    Step 6: Run the app locally (optional)

    To run the app without packaging:

    npm run tauri dev
    

    This will launch the Zed IDE in development mode.


    Troubleshooting Tips

    • Make sure your Rust toolchain is up to date (rustup update).
    • Ensure Visual Studio Build Tools are installed correctly.
    • If you get errors related to missing Windows SDK, install it via Visual Studio Installer.
    • If cargo-tauri is not found, ensure your Cargo bin directory is in your PATH.
    • For any Node.js errors, try deleting node_modules and running npm install again.

    Summary of commands

    git clone https://github.com/zed-industries/zed.git
    cd zed
    npm install
    cargo build --release
    npm run build
    npm run tauri build
    

    If you want, I can also help you with setting up a development environment or debugging specific errors you encounter during the build. Just let me know!

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.