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 个评论
Timothy Stewart
2018-9-17
编辑:Timothy Stewart
2018-9-17
Good read, Unfortunately does not mention classes, nor packages. +package/@class.
回答(2 个)
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.
- Generate a new function m-file, with documentation
- Add copyright information to an m-file or group of m-files
I hope this is what you were looking for.
0 个评论
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!