2019-05-27 05:57 PM
I'm running STM32CubeIDE on a Ubuntu 18.04 system. I've switched it to dark mode for programming, but any "#if" preprocessor directives in the code have a light background. Which, makes it impossible to read. I've looked through all the properties on syntax coloring, and I don't even see a place where I can choose a background color for preprocessor directives.
I'd happily install another theme, but I'm not sure how I'm supposed to do that.
Here's a screen shot: https://i.imgur.com/CuaDg4E.png
Solved! Go to Solution.
2019-08-02 10:14 PM
I recommend "Darkest Dark Theme with DevStyle" plugin that configure all to dark mode.
It can be installed from Eclipse Marketplace.
2019-08-01 08:22 AM
I've had the same issue. Instead of "General -> Appearance -> Colors and Fonts", try "C/C++ -> Editor". In "Appearance color options" choose "Inactive code highlight" on the list and select a color of your choice. Or just untick "Highlight inactive code" on "General Behavior" form above.
2019-08-02 10:14 PM
I recommend "Darkest Dark Theme with DevStyle" plugin that configure all to dark mode.
It can be installed from Eclipse Marketplace.
2019-10-05 03:10 AM
I had the same problem, you can find it in General -> Preferences -> Editors -> Text Editors -> Annotations -> C/C++ Occurrences.
2019-10-06 03:38 PM
I think it's an Eclipse issue, not necessarily an STM32CubeIDE one. Eclipse has had a number of issues with dark themes for years. As far as I know, the best workaround is to manually fix the color like others have shown above.
2020-09-26 10:59 AM
Fantastic theme, with great new icons and it fixed the same problem 8)
2022-11-29 01:32 PM
I think it had an issue with the dark theme. That might be the issue, in this case as well.
2023-01-17 12:04 PM
Hi, i have found a solution.
Go to Window -> Preferences -> General -> Editors -> Text Editors -> Annotations and then C/C++ Occurrences and change the colour.