Eclipse CDT disabled code background color

Indicates a strange code coloring problem when trying to view disabled code.

For code blocks that are disabled using the #ifdef or #ifndef statements, I get a gray / white background:

Eclipse gray background for disabled code

However, when the code is included, everything is fine:

Eclipse correct background for enabled code

Where can I find this color property in the properties menu? I cannot find anything about the disabled code, and it is not in any of the pre-processor color coding menus.

+6
source share
1 answer

As suggested here :

Settings β†’ C / C ++ β†’ Editor, β€œSelect inactive code” is marked, Appearance color options: Inactive code is highlighted.

+6
source

All Articles