Is it possible for the IDE to highlight user code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-27 3:31 PM
Hello,
Is it possible to highlight USER CODE from CubeMX code generation? For example, highlight everything between these types of comments:
/* USER CODE BEGIN PM */
/* USER CODE END PM */
In a similar way that #ifdef / #endif blocks are highlighted?
If not currently available, can it be added the the CubeMX CubeIDE wishlist?
thanks
Matthew
- Labels:
-
STM32CubeIDE
-
STM32CubeMX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-27 4:08 PM - edited ‎2025-02-27 4:10 PM
This can be done as Eclipse editor add-on. Eclipse is opensource project, a lot of add-ons are available in its "marketplace" (Help-> Eclipse marketplace). Anyone can make add-ons or sponsor development of whatever they need or want.
Same with VS Code - a lot of add-ons exist for it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-28 3:14 AM
Indeed.
But this would be a useful add-on for ST to provide - as these sections are their thing, and key to properly using their auto-generated code.
It is the cause of quite a few problems seen here ...
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-04 10:13 AM
Previously:
A complex system designed from scratch never works and cannot be patched up to make it work.
