cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to prevent CubeMX from messing up source code file formatting?

matt-crc
Associate III

Is there a way to prevent CubeMX from constantly messing up the source code formatting?  I spent time setting up the preferences in the CubeIDE tool, but every time CubeMx touches the files, it resets the code formatting.  After the CubeMX returns to the IDE, is there a way to run the IDE source->reformat command?

mattcrc_0-1740699704973.png

if not possible today, can this be added to the development wish list?

thanks

Matthew

2 REPLIES 2
TDK
Guru

You can only add/modify code within the USER CODE brackets. Outside of that, everything is regenerated.

If you feel a post has answered your question, please click "Accept as Solution".
padawan
Senior

If you want to modify the template please have a look

at 

padawan_0-1741004760758.png

There are the templates.

The settings are in 

padawan_1-1741004852033.png

After "Settings" you can choose here your template.

padawan_2-1741005037157.png

 

 

hth padawan