cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to set the indentation level for the Cube code generator?

John Lowen
Associate II
Posted on February 15, 2017 at 21:37

As far as I can tell, Cube defaults to two spaces for indention of generated code. I used the Cube standalone application to generate code and used notepad which does not do anything with tab expansion, etc. It seems that 2 spaces are always used and I did not see any code generation settings that would allow that to be changed.

Thanks

2 REPLIES 2
Nesrine M_O
Lead II
Posted on February 16, 2017 at 14:14

Hi

Lowen.John

,

Our rule is to use two spaces for indentionon our generated code using MX and also on our drivers.O

therwise I will report you feedback to our MX team as enhancement.

-Nesrine-

You are an STM32 user and want to express your trust for our products and win a 3D printer? Get your chance participating in

https://community.st.com/community/stm32-community/embedded-world-contest

Posted on March 21, 2017 at 10:39

I think that it would be a great and useful enhancement for many users.

Thanks,

Matteo