how to add custom header to each file ?

28 次查看(过去 30 天)
How can i add custom header to each file in my project ? details like author, data created, short description about code etc.

回答(2 个)

Dhruvesh Patel
Dhruvesh Patel 2017-3-20
I assume that you are looking for a way to automatically add metadata like author name, version, description, etc., to a .m file.
For that purpose, there are several MATLAB Central code submissions as mentioned below, which you could download and use directly or modify for your exact use-case.
I hope this is what you were looking for.

David Legland
David Legland 2024-7-19
As a (late) follow-up, one may mention the "tedit" contribution by Peter Bodin, that I found both simple and convenient.
Based on this contribution, I later developped a set of tools for easily generate new classes, new scripts, or new unit-test files:
Another resource is the Editor Template Package, by Sean de Wolski, but I found it less simple to use.

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by