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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

1,045 Views
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 Kudos
Reply
3 Replies

1,042 Views
ErichStyger
Specialist I

You can edit and configure this with Code Templates, see

ErichStyger_0-1657130202478.png

 

0 Kudos
Reply

1,013 Views
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 Kudos
Reply

987 Views
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 Kudos
Reply