Where Does Zed Store Snippets?
Zed keeps code snippets as JSON files in a snippets folder under its config directory. One file per language keeps them editable.
Last updated
Zed stores editor settings, themes, and snippets as plain files in one config directory, which makes the whole setup trivially portable. Snippets get their own subfolder: one JSON file per language, each mapping a trigger prefix to its expansion.
This beats a settings UI for anyone living in git. Copy the folder to a new machine and your snippets arrive intact. Keep one file per language rather than one giant file, since that layout merges cleanly and reads well six months later.
Where Zed stores this, by platform
%APPDATA%\Zed\snippets
One JSON file per language lives here. Create the folder if it is missing and name files like rust.json or python.json. Changes apply without restarting.
~/.config/zed/snippets
Same snippets layout as other platforms. The whole config directory is plain text, so symlink or sync it with your dotfiles.
~/.config/zed/snippets
Identical to macOS. XDG config home relocation moves this too, so check the env var if the default path is empty.
Frequently asked questions
How do I add a snippet for my language?
Create a JSON file named after the language, such as rust.json, inside the snippets folder. Zed picks it up without a restart. The file holds a simple object mapping prefix to body.
Can I version control my snippets?
Yes, everything here is plain JSON, so it syncs through dotfiles repos and Settings Sync alike. Watch for merge conflicts in files two machines edit at once.
Notice an outdated path? Let us know.