如何使#ifdef内的颜色主题在Eclipse中更加可读? [英] How to make the color theme inside #ifdef more readable in Eclipse?

查看:396
本文介绍了如何使#ifdef内的颜色主题在Eclipse中更加可读?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我喜欢颜色主题(谢谢!),但是一个严重的尴尬的问题是#ifdef'd out的代码是不可能读取的(令人烦恼的是)。如果我强调这些线条,我可以阅读,但我真的真的不会看到它。似乎是与工具提示类似的问题,但我希望有一个设置可以关闭非法代码的语法突出显示。我看过并没有找到它,但并不一定意味着它不存在。

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 those lines, I can read it, but I'd really really rather not see it at all. Seems to be a similar issue as the one for tool-tips, but I am hoping that there is a setting somewhere to turn off the syntax highlighting for inactive code. I have looked and not found it, but that doesn't necessarily mean it doesn't exist. I am an optimist (in this regard anyway).

推荐答案

您可以完全禁用#ifdef突出显示:

You can disable #ifdef highlighting entirely by going to:


窗口 - >首选项 - > C / C ++ - >编辑器
并取消选中突出显示非活动代码框。

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

此外,您可以通过转到同一个屏幕并更改非活动代码高亮颜色(外观颜色选项)下更改#ifdef高亮颜色标题)到一个更适合你的颜色。

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.

这篇关于如何使#ifdef内的颜色主题在Eclipse中更加可读?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆