how to add custom header to each file ?

조회 수: 26 (최근 30일)
Jaymin Jasoliya
Jaymin Jasoliya 2017년 3월 17일
답변: David Legland 2024년 7월 19일
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
Timothy Stewart 2018년 9월 17일
편집: Timothy Stewart 2018년 9월 17일
Good read, Unfortunately does not mention classes, nor packages. +package/@class.

댓글을 달려면 로그인하십시오.

답변 (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