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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

1,208 次查看
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,205 次查看
ErichStyger
Specialist I

You can edit and configure this with Code Templates, see

ErichStyger_0-1657130202478.png

 

0 项奖励
回复

1,176 次查看
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,150 次查看
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 项奖励
回复