Skip to content
| Marketplace
Sign in
Visual Studio Code>Themes>Zed File TreeNew to Visual Studio Code? Get it now.
Zed File Tree

Zed File Tree

qhai-dev

|
2 installs
| (0) | Free
Restyle only the VS Code Explorer file tree to match the Zed editor's project panel: 24px rows, 14px labels, continuous indent guides aligned to the icon column, no expand chevron, and a separated root. Colors follow your color theme; icons follow your icon theme.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Zed File Tree for VS Code

Restyle the VS Code Explorer (file tree) to match the Zed editor's project panel.

  • ✅ Geometry — 24px rows, 14px labels, no expand chevron, 4px selection radius
  • ✅ Indent guides — Zed-style continuous vertical lines, aligned with the icon column
  • ✅ Root separation — a gap between the workspace root and its children
  • ✅ Structure — 20px indent, guides always on, folders-first sort, sticky scroll, no compact folders
  • ✅ Colors follow your VS Code color theme (not overridden)
  • ✅ Icons follow your icon theme (e.g. Material Icon Theme; not overridden)

What it changes

Aspect Zed value Zed source
Row height 24px h_6 list rows
Label size 14px text_ui (0.825rem @ 16px)
Folder indicator no chevron folder_indicator: "icon" (default)
Indent 20px/level project_panel.indent_size: 20
Indent guides one continuous line per ancestor, 1px indent_guides.rs:142
Guide position parent's icon column + 15px LIST_ITEM_INDENT_GUIDE_LEFT_OFFSET = px(15.)
Guide end padding 4px inset PADDING_Y = px(4.) (project_panel.rs:7840)
Root gap 8px List uses py(DynamicSpacing::Base04) = 8px (list.rs:82)
Selection radius 4px rounded_sm
Sort order directories first sort_mode: "directories_first"
Sticky scroll on sticky_scroll: true
Compact folders off Zed shows the full hierarchy

Usage

  1. Install the extension. It applies the tree style on activation and offers a Reload Now action (needed once, because the row height and the guide renderer live in VS Code's own workbench bundle).
  2. Commands:
    • Zed File Tree: Apply Style
    • Zed File Tree: Revert Style

Settings (zedFileTree.*):

  • enableGeometryPatch (default true)
  • boldFolders (default false) — Zed's bold_folder_labels
  • hideChevron (default true) — Zed's folder_indicator: "icon"
  • rootGap (default 8) — space between the workspace root and its children

How it works (and the caveat)

VS Code's tree row height and each row's top offset are inline styles written from TreeRenderer.ITEM_HEIGHT (src/vs/workbench/browser/parts/views/treeView.ts:1245), so a CSS-only override makes rows overlap. The extension therefore patches that constant in the workbench bundle (Explorer tree only) and recomputes the checksums in product.json.

The indent guides need more than CSS, because VS Code's own guides cannot express Zed's layout:

  • a row at aria-level 1 (direct child of the workspace root) gets no guide, since the root is not part of the tree's ancestor chain (abstractTree.ts:531);
  • each guide is a per-row segment instead of one continuous line;
  • the guides are 8px off the icon column they should line up with.

So the extension injects a small overlay that ports Zed's compute_indent_guides algorithm (indent_guides.rs:435) and renders the lines itself. The guide x is measured from the DOM (the ancestor's icon column) rather than computed, so it stays correct in both workspace layouts.

Because it edits VS Code's installation, a VS Code update overwrites the patch — re-run Apply Style after updating.

Attribution

Visual values transcribed from the Zed source tree (crates/project_panel, crates/ui, crates/theme) and the One Dark theme (assets/themes/one/one.json).

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft