Add auto-file-header extension
Extension: Auto File Header
Automatically inserts customizable file headers (copyright, author, date) when creating new empty files.
Features
- 30+ built-in language templates with proper comment styles
- Configurable via
.auto-header.toml(project or global) - Zero external dependencies (bundled LSP server)
- Cross-platform support (Linux, macOS, Windows)
Repository
https://github.com/MrAMS/zed-auto-file-header
License
MIT
Checklist
- [x] Extension submodule added
- [x] Valid license included (MIT)
- [x] Extension ID does not contain "zed"
- [x] Tested locally via "Install Dev Extension"
Example
auto file header:
/*
* File: example.rs
* Project: My Project
* Author: Your Name <[email protected]>
* Created: 2025-11-24 19:30:00
*
* Copyright (c) 2025 Your Company
* All rights reserved.
*/
config file:
[author]
name = "Your Name"
email = "[email protected]"
[project]
name = "My Project"
copyright_holder = "Your Company" # Optional, defaults to author name
[header]
template = """
/*
* File: {filename}
* Project: {project}
* Author: {author} <{email}>
* Created: {date} {time}
*
* Copyright (c) {year} {copyright_holder}
* All rights reserved.
*/
"""
We require contributors to sign our Contributor License Agreement, and we don't have @MrAMS on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.
@cla-bot check
The cla-bot has been summoned, and re-checked this pull request!
Hi @MrSubidubi
I've fixed the ci error(fix correct path forextension.toml) in commit, and update submodule version. Please run the ci again and review it at your convenience. :rocket:
ci error fixed, please run the ci again.