Skip to main content
NWise
Visitor II
October 20, 2018
Question

Use tabs instead of spaces when generating files in cubemx

  • October 20, 2018
  • 3 replies
  • 1409 views

Hi, I recently installed the cubemx software, and while learning the program I saw in the code files that the indentation was space based and not tabs based. Is there any option to change the indentation style? I can't find any option like this in the settings.

Noam

    This topic has been closed for replies.

    3 replies

    SAlbe
    Associate
    November 2, 2018

    I'd also like to know if there is a solution for this. In our case, we want four spaces rather than two.

    Tesla DeLorean
    Guru
    November 2, 2018

    Any way that floats your collective boats....

    http://uncrustify.sourceforge.net/

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    SAlbe
    Associate
    November 2, 2018

    Certainly we can run uncrustify, clang-format, etc. every time we regenerate from Cube. I was just hoping to avoid that if possible.

    Tesla DeLorean
    Guru
    November 2, 2018

    Sort of functionality ST could automate, with a pane/templates controlling formatting preferences.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..