cancel
Showing results for 
Search instead for 
Did you mean: 

Can CubeMX be configured so generated code uses 4 spaces for indentations instead of 2?

KConn.1
Associate

The code generated by CubeMX uses 2 spaces as an indentation. I think it is safe to say that the overwhelming majority of developers are expecting 4 spaces or a tab for indentations.

Is there any way to change this configuration in CubeMX? This seems like an incredibly easy change for ST to make, or allow it to be configuration.

I see in the code generator settings there is something about templates, but no explanation as to what it is or what type of file is used as a template. Is this configuration encoded in there somehow?

Thanks!

0 REPLIES 0