在哪里更改 Eclipse 中选定事件的突出显示颜色?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4699166/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Where to change highlight color for selected occurrences in Eclipse?
提问by Eugene
When a method or variable is selected it is highlighted in Eclipse with some color. Can anyone advice where to change that color? I'm working under Windows OS.
选择方法或变量后,它会在 Eclipse 中以某种颜色突出显示。任何人都可以建议在哪里改变这种颜色?我在 Windows 操作系统下工作。
回答by Eugene
I've found where to change it:
我找到了改变它的地方:
Preferences -> General -> Editors -> Text Editors -> Annotations and there you have to change both "Occurrences" and "Write occurrences".
首选项 -> 常规 -> 编辑器 -> 文本编辑器 -> 注释,您必须在那里更改“出现次数”和“写入出现次数”。
回答by EnabrenTane
Preferences -> General -> Editors -> Text Editors
首选项 -> 常规 -> 编辑器 -> 文本编辑器
Current Line Highlight
当前行高亮
I think you want the above
我想你想要上面的
else
别的
Preferences -> Java -> Editor -> Syntax Coloring
首选项 -> Java -> 编辑器 -> 语法着色
Element -> Java -> Method or Variable
元素 -> Java -> 方法或变量
Check Enable and select color
选中启用并选择颜色
回答by Nijesh Hirpara
If you're using eclipse with PHP package and want to change highlighted colour then there is slight difference to above answer.
如果您将 Eclipse 与 PHP 包一起使用并希望更改突出显示的颜色,那么上述答案略有不同。
- Right click on highlighted word
- Select 'Preferences'
- Go to General > Editors > Text Editors > Annotations. Now look for "PHP elements 'read' occurrences" and "PHP elements 'write' occurrences". You can select your desired colour there.
- 右键单击突出显示的单词
- 选择“首选项”
- 转到“常规”>“编辑器”>“文本编辑器”>“注释”。现在查找“PHP 元素‘读’出现次数”和“PHP 元素‘写’出现次数”。您可以在那里选择您想要的颜色。
回答by Alex A
This has made me mad for about half an hour.
这让我生气了大约半个小时。
If the issue appears in JavaScript files, the option is under Preferences -> General -> Editors -> Text Editors -> Annotations and in the Annotation types choose JavaScript Occurences. Mine was set to black, nasty little thing took me too long to fix.
如果问题出现在 JavaScript 文件中,则该选项位于首选项 -> 常规 -> 编辑器 -> 文本编辑器 -> 注释下,并在注释类型中选择 JavaScript 出现。我的设置为黑色,讨厌的小东西花了我太长时间才修复。