Is there a way to prevent CubeMX from messing up source code file formatting?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-27 3:43 PM
Is there a way to prevent CubeMX from constantly messing up the source code formatting? I spent time setting up the preferences in the CubeIDE tool, but every time CubeMx touches the files, it resets the code formatting. After the CubeMX returns to the IDE, is there a way to run the IDE source->reformat command?
if not possible today, can this be added to the development wish list?
thanks
Matthew
- Labels:
-
STM32CubeMX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-27 4:05 PM
You can only add/modify code within the USER CODE brackets. Outside of that, everything is regenerated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-03-03 4:30 AM
If you want to modify the template please have a look
at
There are the templates.
The settings are in
After "Settings" you can choose here your template.
hth padawan
