How to make the color theme inside #ifdef more readable in Eclipse?

后端 未结 5 1043
無奈伤痛
無奈伤痛 2020-12-25 12:11

I love the color themes (thanks!), but one seriously nagging issue is that the code that is #ifdef\'d out, is impossible to read (and annoyingly bright). If I highlight tho

5条回答
  •  北海茫月
    2020-12-25 12:48

    You can disable #ifdef highlighting entirely by going to:

    Window -> Preferences -> C/C++ -> Editor and unchecking the box "Highlight inactive code".

    Also, you can change the #ifdef highlighting color by going to that same screen and changing the "Inactive code highlight" color (under "Appearance color options" heading) to a color that works better for you.

提交回复
热议问题