cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeIDE dark mode preprocessor highlighting bug

AHend
Associate

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

1 ACCEPTED SOLUTION

Accepted Solutions
Yuk117
Associate III

I recommend "Darkest Dark Theme with DevStyle​" plugin that configure all to dark mode.

It can be installed from Eclipse Marketplace​.

View solution in original post

7 REPLIES 7
DNowa.10
Associate

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.

Yuk117
Associate III

I recommend "Darkest Dark Theme with DevStyle​" plugin that configure all to dark mode.

It can be installed from Eclipse Marketplace​.

salar.yunis
Associate

I had the same problem, you can find it in General -> Preferences -> Editors -> Text Editors -> Annotations -> C/C++ Occurrences.

embeddedt
Associate II

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.

Fantastic theme, with great new icons and it fixed the same problem 8)

MRay.1
Associate

I think it had an issue with the dark theme. That might be the issue, in this case as well.

MAbra.4
Associate

Hi, i have found a solution.

Go to Window -> Preferences -> General -> Editors -> Text Editors -> Annotations and then C/C++ Occurrences and change the colour.