79677446

Date: 2025-06-24 10:57:31
Score: 2
Natty:
Report link

I use notepad++ to get rid of them. (god how I hate them too). I use CubeMx to create the file and then thats it, I never (need to) go back. If I do miss something then I create another project with the extra bits I need.

Once Cube has created them, open the file (eg main.c or any of the generated files) in noptepad++ and do the following. Note: the 'replace' field is empty or a space, depending on what it allows. Ensure regular exp is on too.

find: ^.*\/\*.*USER CODE.*$

replace:

-------------------------------------

and also to replace /* commment */ with //comment

find: (^.*)\/\*(.+)\*\/

replace: \1// \2

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • No code block (0.5):
  • Filler text (0.5): -------------------------------------
  • Low reputation (1):
Posted by: user30879702