1.安装Courier New字体
apt-get install ttf-mscorefonts-installer
2. 更改字体和大小
window->Preferences->General->Appearance->Colors and Font ->Java->Java Editor
3.代码悬浮提示窗口颜色
步骤一:通过修改配置文件的方式实现ubuntu主题背景
文件位于/usr/share/themes/下对应的主题文件夹下,ubuntu默认使用Ambiance主题,就进入到/usr/share/themes/Ambiance/目录下,
cd /usr/share/themes/Ambiance
打开gtk-2.0/gtkrc文件
sudo vim gtk-2.0/gtkrc
修改第一行的tooltip_fg_color和tooltip_bg_color两个属性的值,如果没有改属性,可以自行添加,其值仿照windows的默认值,分别设定位:tooltip_fg_color:#000000
tooltip_bg_color:#f2edbc
相同的方法修改gtk-3.0/settings.ini:
sudo vim gtk-3.0/settings.ini
同样修改:
tooltip_fg_color:#000000
tooltip_bg_color:#f2edbc
然后保存退出,打开系统外观配置,切换一下主题,当切换回来的时候,修改的效果就生效了。
步骤二:解决Eclipse自身遗留下的提示背景黑色:
在eclipse里直接可以设置,修改该颜色的配置选项位于:
菜单栏 Window->preferences->C/C++->Editor 项目中的Appearance color
options里面的Source hover background选项,取消勾选System Default,选择喜欢的颜色即可。