Eclipse CDT: How can I change background color of tooltip in editor?

喜欢而已 提交于 2019-12-23 19:06:37

问题


I'm using eclipse for coding C++ and Java. When declaration or definition is shown, background is black. It happens only in C++ srouce file. I dont have this problem while editing Java source files.

I have installed Eclipse Color Theme. I'm not able to find where i can set background color of this window. I have been searching in General/Appearance/Colors and Fonts and C/C++/Editor/Syntax Coloring without result.


回答1:


I had this problem because I installed this plugin. I tried out the themes but when I decided on the original and swapped back to it the tool tips were broken in this fashion. Unfortunately the only way I managed to fix it was by "reinstalling" eclipse.




回答2:


Switching to a clean workspace might help but I found the curprit if you want to manually edit it. Look in:

[my workspace]/org.eclipse.core.runtime/.settings/org.eclipse.cdt.ui.prefs

for

sourceHoverBackgroundColor.SystemDefault=false

and make it "true". Restart Eclipse. Of course this assumes that your system default background colour is not black.



来源:https://stackoverflow.com/questions/7320537/eclipse-cdt-how-can-i-change-background-color-of-tooltip-in-editor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!