cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to set up the editor to highlight the "USER CODE BEGIN" and "USER CODE END" comments? That would make it more convenient to quickly see the user code blocks and distinguish them from other code comments.

Per4
Associate II
 
1 REPLY 1
Peter BENSCH
ST Employee

Welcome, @Per​, to the community!

very good idea, but STMicroelectronics uses the GUI Eclipse unchanged and only adds its own program extensions. The color scheme is determined by the GUI and can currently only be set for multi-line comments and single-line comments (Window > Preferences > Editor > Syntax Coloring).

If you want to find these USER CODE code blocks again, there is a little help by defining task tags (Window > Preferences > Task Tags). Adding USER CODE END there with any priority will show them in the Tasks view (Window > Show View > Tasks). After a double click, you'll get the end of this block in the editor and directly above it your own code that may have been inserted.

If the problem is resolved, please mark this topic as answered by selecting Select as best. This will help other users find that answer faster.

Good luck!

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.