2021-02-20 12:24 PM
Hi everyone,
when I export a project from STM32CubeMX (6.1.1) to the STM32CubeIDE (1.5.1), a project with double space indent is created. However, the CubeIDE uses Tabs. How can I fix that? Who uses double space indent anyway?
Thanks a lot :)
Solved! Go to Solution.
2021-02-20 12:37 PM
You can specify formatting rules for eclipse in Window -> Preferences -> C++ -> Code style -> Formatter
There you select one of bundled formatting styles or create your own.
If you prefer your own, export it and save the file outside of the eclipse workspace.
When you start a new project, import it back.
-- pa
2021-02-20 12:37 PM
You can specify formatting rules for eclipse in Window -> Preferences -> C++ -> Code style -> Formatter
There you select one of bundled formatting styles or create your own.
If you prefer your own, export it and save the file outside of the eclipse workspace.
When you start a new project, import it back.
-- pa
2021-02-20 12:41 PM
OK, but I would like CubeMX to export tabs - or at least quad-spaces ;)
2021-02-22 02:50 PM
You can run this on the code after generation / before committing to version control:
2021-02-25 06:42 AM
Not exactly what I had in mind... It makes working with CubeMX/CubeIDE a pain if I have to do so many steps to change a little thing.
I want CubeMX to export a proper formatted code, is that too much to ask for?
2023-11-09 11:43 PM
Two years later, and I still see people asking about this. Have you found a solution, @Fabian21 ?
2023-11-10 12:10 AM
No, not really. Have not been using CubeMX/CubeIDE lately.