---
title: "How We Rebuilt Settings in Zed"
description: "Zed's new Settings Editor required replacing its distributed, runtime-registered settings model, where each crate declared its own settings, with centralized strongly typed `UserSettings` and `ProjectSettings` structures that map directly to configuration files."
url: "https://swe.quest/articles/how-we-rebuilt-settings-in-zed-b142a3ae343e0137"
canonical: "https://zed.dev/blog/settings-ui"
source: "Zed"
published: "2025-12-12"
difficulty: "medium"
kind: "Case study"
reading_minutes: 8
tags: ["developer-tools","rust","refactoring","configuration","frontend"]
---

# How We Rebuilt Settings in Zed

A post on [Zed](https://swe.quest/sources/zed.md), published 2025-12-12, 8 min read, Case study. Original: [https://zed.dev/blog/settings-ui](https://zed.dev/blog/settings-ui)

## Summary

Zed's new Settings Editor required replacing its distributed, runtime-registered settings model, where each crate declared its own settings, with centralized strongly typed \`UserSettings\` and \`ProjectSettings\` structures that map directly to configuration files. A first attempt using macros to attach UI metadata became tangled in the crate graph's split between pre-UI and UI regions. Changes made under the old architecture also accidentally broke auto-update. Treating the settings files as the organizing principle led to a separate window rather than a workspace tab. On the UI side, GPUI gained tab groups that scope tab indices locally for automatic keyboard navigation, plus a \`use\_state\`-style API for keeping ephemeral component state in the UI tree, which went through some memory-leak and scoping bugs before stabilizing.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)
- [Rust](https://swe.quest/tags/rust.md) (Languages)
- [Refactoring & migrations](https://swe.quest/tags/refactoring.md) (Engineering practices)
- [Configuration management](https://swe.quest/tags/configuration.md) (Reliability & operations)
- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)

## Prerequisites

- Rust basics ([easy posts on Rust](https://swe.quest/tags/rust.md?difficulty=easy))
- UI framework state management ([easy posts on Engineering management](https://swe.quest/tags/engineering-management.md?difficulty=easy))

## Keywords

Zed, GPUI, Settings Editor, settings.json, use\_state, FocusHandle

## Related posts

- [Zed Weekly: #25](https://swe.quest/articles/zed-weekly-25-cd3a5f41d4f0b187.md): Zed · 2023-11-03 · Medium · 6 min read · Rust, Frontend, Refactoring & migrations, Developer tools
  Zed is rewriting its UI framework as GPUI 2 and porting the whole editor onto it before open-sourcing, trading feature work for better ergonomics while keeping GPUI 1's performance.
- [Zed Weekly: #28](https://swe.quest/articles/zed-weekly-28-c8ae91adc8298b18.md): Zed · 2023-12-04 · Medium · 5 min read · Developer tools, Rust, Design systems
  Zed is rewriting its editor as Zed2 in three phases (runnable core editing, productivity features like collaboration, terminal and Vim mode, then flagship features like Assistant, Copilot and Chat), aiming for a preview by end of 2023 and open-sourcing shortly after Zed2 supersedes Zed1.
- [Why the big rewrite?](https://swe.quest/articles/why-the-big-rewrite-ec307a4c7f73f459.md): Zed · 2024-01-23 · Easy · 21 min read · Rust, Frontend, Refactoring & migrations, Developer tools
  Zed rewrote its Rust UI framework from GPUI 1 to GPUI 2 because the original design blocked fast UI work: a Flutter-style constraints-down/sizes-up layout model, styles split between Rust element code and TypeScript-generated JSON "themes" loaded at runtime, model code entangled with presentation (a legacy of an early Electron/JSON architecture), and weakly typed geometry (raw f32s and usizes).
- [Zed Weekly: #23](https://swe.quest/articles/zed-weekly-23-d3ef49beb6d8eb22.md): Zed · 2023-10-13 · Medium · 7 min read · Developer tools, Rust, Concurrency, Frontend, Performance engineering
  Zed's weekly team update covers a fix for typing lag with autocomplete.
- [Zed Weekly: #27](https://swe.quest/articles/zed-weekly-27-be3a7010da4c60e0.md): Zed · 2023-11-24 · Medium · 4 min read · Rust, Frontend, Developer tools
  GPUI, Zed's UI framework, settled on its core view traits: \`Render\` builds a view from a mutable reference each frame, \`RenderOnce\` builds composable elements by consuming them, and \`#\[derive(IntoElement)\]\` lets custom components be passed straight to \`div().child(...)\`. gpui2 now sizes UI in \`rem\` units tied to a new \`ui\_font\_size\` setting (default 16px, on a 4px grid), so the interface scales independently of buffer font size, though sub-pixel sizes remain unresolved.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
