Tool/software: Code Composer Studio
Hello,
For my application, I really need to format struct initializations such that the assignments are each on their own line. This makes it easy to read and review the assignments for each entry.
However, I also don't want array initialization to occupy a new line for each entry. Arrays tend to be very long and the data is compact.
Unfortunately, it seems that the CCS code formatter treats these as the same, providing only a single option:
C/C++ > Code Style > Formatter > Line Wrapping > Expressions > Initializer lists
If I set it to "Wrap only when necessary", then I'm happy with how the arrays are initialized, but unhappy with how the struct is initialized.
If I set it to "Wrap all elements", then I'm happy with how the structs are initialized, but very unhappy with how the arrays are initialized.
Is there any way that I can have structs and array initialization formatted independently of each other?
Thank you!