简体   繁体   English

如何在未定义的区域中更改eclipse中的背景颜色?

[英]How to change background color in eclipse for a not defined region?

Really annoyed by eclipse masking over #if defined region with grey color. 真的被日食掩盖了#if定义的灰色区域。 I want to either turn off this feature, or make it the same as for normal region. 我想关闭此功能,或者使其与普通区域相同。 Have been looking for a solution for some time but couldn't find anything. 一直在寻找解决方案,但找不到任何东西。

HELP! 救命!

Thanks. 谢谢。

You can adjust language syntax coloring via 您可以通过调整语言语法着色

Window > Preference > [Your Language] > Editor > Syntax Coloring 窗口>首选项> [您的语言]>编辑器>语法着色

for the language specified background color, you can check 对于语言指定的背景颜色,您可以检查

Window > Preference > Appearance > Colors and Fonts 窗口>首选项>外观>颜色和字体

Inside the panel, you should able to find out preference color/font for your language. 在面板内部,您应该能够找到您的语言的首选颜色/字体。

UPDATE : 更新

There is an "Appearance Color Option" in 中有“外观颜色选项”

Window > Preference > [Your Language] > Editor 窗口>首选项> [您的语言]>编辑器

For C/C++ editor, it has an option call "Inactive code highlight". 对于C / C ++编辑器,它有一个选项调用“非活动代码突出显示”。

On Mac: 在Mac上:

  1. Eclipse 日食
  2. Preferences 首选项
  3. C/C++ C / C ++
  4. Editor 编辑
  5. Inactive code highlight (2nd option) 非活动代码突出显示(第二个选项)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM