extensions icon indicating copy to clipboard operation
extensions copied to clipboard

Add auto-file-header extension

Open MrAMS opened this issue 1 month ago • 4 comments

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.
 */

"""

MrAMS avatar Nov 23 '25 14:11 MrAMS

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[bot] avatar Nov 23 '25 14:11 cla-bot[bot]

@cla-bot check

MrAMS avatar Nov 23 '25 14:11 MrAMS

The cla-bot has been summoned, and re-checked this pull request!

cla-bot[bot] avatar Nov 23 '25 14:11 cla-bot[bot]

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:

MrAMS avatar Nov 24 '25 15:11 MrAMS

ci error fixed, please run the ci again.

MrAMS avatar Dec 09 '25 01:12 MrAMS