How to do text alignment for TruStudio?
I use STM32 workbench for previous project and TruStudio for new project, when I copy some source code to TruStudio, it is not align properly, is there any shortcut for TruStudio can do alignment easily?
I use STM32 workbench for previous project and TruStudio for new project, when I copy some source code to TruStudio, it is not align properly, is there any shortcut for TruStudio can do alignment easily?
Hello Nickname3026,
Under Eclipse IDE (like SW4STM32 or TrueStudio) you should configure style formatter like this:
Window -> Preferences -> C/C++ -> Code Style -> Formatter
By default K&R profile is selected. With Tab size = 4 for indentation
You can create a new profile with your prefered settings.
Then if you want to indent correctly a source code, select all the file (CTRL+A) then right cliq and choose Source menu and Correct indentation (or directly with CTRL+I)
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.