Add Zed editor to Global gitignore templates by mvanhorn · Pull Request #4815 · github/gitignore

Reasons for making this change

The Zed editor (56k+ GitHub stars) creates a .zed/ directory in project roots for project-specific settings. This mirrors VS Code's .vscode/ directory - some files are shared team config, others are user-specific.

The Global/ directory has templates for 20+ editors (VS Code, Cursor, JetBrains, Vim, Emacs, Sublime Text, etc.) but is missing Zed. This template follows the same ignore-all, whitelist-shared pattern used by the existing VS Code template.

Whitelisted files:

  • .zed/settings.json - project settings (formatter, language server config, tab size)
  • .zed/tasks.json - project task definitions
  • .zed/debug.json - project debug configurations

These are team-shareable project config. Everything else in .zed/ is ignored by default to catch any future user-specific state files.

Links to documentation supporting these rule changes

If this is a new template

Link to application or project's homepage: https://zed.dev/

Merge and Approval Steps

  • Confirm that you've read the contribution guidelines and ensured your PR aligns
  • Ensure CI is passing
  • Get a review and Approval from one of the maintainers

This contribution was developed with AI assistance (Claude Code).