How to change the value of ${author} variable used in MCUXpresso

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to change the value of ${author} variable used in MCUXpresso

1,207件の閲覧回数
Badman
Contributor I

Hello,

 

Now new project in C has

 

/*
===============================================================================
 Name        : WYS_HD44780.c
 Author      : $(author)
 Version     :
 Copyright   : $(copyright)
 Description : main definition
===============================================================================
*/

 

 

How to change he value of ${author} and how to add time create file ?

I want the new file to look like this:

 

/*
===============================================================================
 Name        : WYS_HD44780.c
 Author      : Badman
 Created on  : 06.07.2022
 Version     :
 Copyright   : $(copyright)
 Description : main definition
===============================================================================
*/

 

0 件の賞賛
返信
3 返答(返信)

1,204件の閲覧回数
ErichStyger
Specialist I

You can edit and configure this with Code Templates, see

ErichStyger_0-1657130202478.png

 

0 件の賞賛
返信

1,175件の閲覧回数
Badman
Contributor I

Thank you very much.

OK, I can replace $author with a constant. But how do I set the value of $author ?

0 件の賞賛
返信

1,149件の閲覧回数
ErichStyger
Specialist I

It is actually not ${author}, but ${user}:

Just wrote about it, see https://mcuoneclipse.com/2022/07/13/custom-user-with-c-c-code-templates/

 

I hope this helps,

Erich

0 件の賞賛
返信