[英]Where to change highlight color for selected occurrences in Eclipse?
When a method or variable is selected it is highlighted in Eclipse with some color. 选择方法或变量时,它会在Eclipse中以某种颜色突出显示。 Can anyone advice where to change that color? 任何人都可以建议改变那种颜色? I'm working under Windows OS. 我在Windows操作系统下工作。
I've found where to change it: 我发现在哪里改变它:
Preferences -> General -> Editors -> Text Editors -> Annotations and there you have to change both "Occurrences" and "Write occurrences". 首选项 - >常规 - >编辑器 - >文本编辑器 - >注释,您必须更改“出现次数”和“写入事件”。
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 选中启用并选择颜色
If you're using eclipse with PHP package and want to change highlighted colour then there is slight difference to above answer. 如果您正在使用带有PHP包的eclipse并想要更改突出显示的颜色,那么与上面的答案略有不同。
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. 如果问题出现在JavaScript文件中,则该选项位于首选项 - >常规 - >编辑器 - >文本编辑器 - >注释下,并在注释类型中选择JavaScript出现。 Mine was set to black, nasty little thing took me too long to fix. 我被设置为黑色,讨厌的小东西花了我太长时间来修复。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.