Very large tabs in eclipse panes on Ubuntu
http://stackoverflow.com/questions/11805784/very-large-tabs-in-eclipse-panes-on-ubuntu
ou can edit Eclipse's CSS instead of messing with the GTK theme.
In your Eclipse directory find the file plugins/org.eclipse.platform_4.2.*/css/e4_default_gtk.css
(there's an *
in there, because I guess that the version may change in the future or may be different already). In this file there's a CSS class:
.MPartStack {
font-size: 11;
swt-tab-height: 22px;
swt-simple: false;
swt-mru-visible: false;
}
And you have two possible solutions:
- change
font-size
to something smaller - just comment out or remove
font-size
from this class (works well for me)
And that should do the trick.
###########
Tab width
在eclipse中设置tab size的地方有多个
1:window——preference——General——Editor——Text Editor设置页面:Display Tab Width
2:window——preference——Java——Code Style——Formatter设置页面,Edit,在弹出的Editor profile窗口中,Indentation卡片,设置Indentation Size和Tab Size。
3:如果安装了Myeclipse,那么在window——preference——Myeclipse——Editor——Common Editor Preference中Apperance卡片,设置Tab Size。
##########
修改或者新建(系统默认是没有的)
/home/Your_username/.gtkrc-2.0 (ubuntu中 . 开头的文件默认是隐藏文件,快捷键Ctrl+H可显示隐藏文件)
复制如下的内容:
01 |
style "gtkcompact" { |
02 |
font_name= "Sans 9" |
03 |
GtkButton::default_border={ 0 , 0 , 0 , 0 } |
04 |
GtkButton::default_outside_border={ 0 , 0 , 0 , 0 } |
05 |
GtkButtonBox::child_min_width= 0 |
06 |
GtkButtonBox::child_min_heigth= 0 |
07 |
GtkButtonBox::child_internal_pad_x= 0 |
08 |
GtkButtonBox::child_internal_pad_y= 0 |
09 |
GtkMenu::vertical-padding= 1 |
10 |
GtkMenuBar::internal_padding= 0 |
11 |
GtkMenuItem::horizontal_padding= 4 |
12 |
GtkToolbar::internal-padding= 0 |
13 |
GtkToolbar::space-size= 0 |
14 |
GtkOptionMenu::indicator_size= 0 |
15 |
GtkOptionMenu::indicator_spacing= 0 |
16 |
GtkPaned::handle_size= 4 |
17 |
GtkRange::trough_border= 0 |
18 |
GtkRange::stepper_spacing= 0 |
19 |
GtkScale::value_spacing= 0 |
20 |
GtkScrolledWindow::scrollbar_spacing= 0 |
21 |
GtkExpander::expander_size= 10 |
22 |
GtkExpander::expander_spacing= 0 |
23 |
GtkTreeView::vertical-separator= 0 |
24 |
GtkTreeView::horizontal-separator= 0 |
25 |
GtkTreeView::expander-size= 8 |
26 |
GtkTreeView::fixed-height-mode=TRUE |
27 |
GtkWidget::focus_padding= 0 |
28 |
} |
29 |
class "GtkWidget" style "gtkcompact" |
30 |
style "gtkcompactextra" { |
31 |
xthickness= 1 |
32 |
ythickness= 1 |
33 |
} |
34 |
class "GtkButton" style "gtkcompactextra" |
35 |
class "GtkToolbar" style "gtkcompactextra" |
36 |
class "GtkPaned" style "gtkcompactextra" |
注销系统再次登录,打开Eclipse 的界面果然是紧凑来,感觉不错,打开其他的程序界面也同样是紧凑来不少。
界面美观了不少,但是Eclipse的自动提示的背景色是黑色的,看起来也非常的难受:
修改方案:
打开终端移动到当前主题目录下:
cd /usr/share/themes/当前的主题名/
打开gtk-2.0/gtkrc文件:
sudo gedit gtk-2.0/gtkrc
寻找到“ntooltip_fg_color”和“ntooltip_bg_color”兩個屬性的值,如果沒有改屬性,可以自行添加,其值仿照windows的默認值,分別設定位:
tooltip_fg_color:#000000
tooltip_bg_color:#f2edbc
然後保存退出,打開系統外觀配置,切換一下主題,當切換回來的時候,修改的效果就生效了。
最后插入图片一张:
__________________________________________________
linux deepin 下,首先找出gtk的相关配置文件:
june@deepin:~>
sudo find / -name "*gtkrc*"
june@deepin:~>
sudo vi /usr/share/themes/Deepin/gtk-2.0/gtkrc
然后再 open perspective 即可去掉多余的工具条。
Very large tabs in eclipse panes on Ubuntu的更多相关文章
- [原创]Eclipse Mars 在Ubuntu升级后无法工作的解决方法
近日将自己的Ubuntu从14.04LTS升级到了16.04LTS,顿时发现Eclipse不能正常工作了,到Ubuntu的官网上转了一圈发现以下解决方案: 症状: [1]Eclipse启动很慢; [2 ...
- Install eclipse ns3 in ubuntu 14.04
1. NS3 install 参考NS3 tutorial即可. 2.eclipse 2.1下载 下载地址:http://www.eclipse.org/downloads/ ...
- win10 eclipse连接虚拟机ubuntu中的hdfs
1.eclipse安装连接hadoop的插件hadoop-eclipse-plugin-2.6.0(注意自己hadoop的版本) 将该插件放在eclipse安装路径的plugins文件夹中. ps:我 ...
- (转) How to install eclipse in ubuntu 12.04
源地址:http://www.krizna.com/ubuntu/install-eclipse-in-ubuntu-12-04/ Eclipse installation in ubuntu 12. ...
- Ubuntu 14.04—Eclipse配置Pydev
Eclipse: 1. 下载 Eclipse 最新版 访问官方网站下载 Eclipse 最新版,这个就不多说了,大家自己去下. http://www.eclipse.org/downloads/?o ...
- Ubuntu启动eclipse问题
Ubuntu启动eclipse问题 在Ubuntu安装eclipse后 可以在终端顺利启动eclipse:进入eclipse目录,在终端输入命令 ./eclipse > /dev/null 2& ...
- Ubuntu下增加eclipse菜单图标并配置java path(解决点击图标不能启动eclipse的问题)
Ubuntu下增加eclipse菜单图标 Ubuntu的菜单图标在/usr/share/applications目录下. 1. 在/usr/share/applications目录下新建eclipse ...
- ubuntu下不用eclipse开发cocos2d-x(命令行)
之前在ubuntu下通过eclipse搭建开发cocos2d-x的环境,但是由于eclipse界面在ubuntu显得很丑,在里面写代码,完全没有感觉,后来我转到了win7上通过vs2010和eclip ...
- 解决KDE桌面环境下Eclipse崩溃的问题--让Eclipse使用特定的GTK2主题运行
最近在Kubuntu14.04上安装Eclipse,由于Ubuntu软件中心中的版本太老(3.8),而且会自动安装OpenJDK,于是到官网下载最新的4.4版.(Luna,代号很有亲切感有木有,女神万 ...
随机推荐
- 一步步搭建自己的轻量级MVCphp框架-(二)一个国产轻量级框架Amysql源码分析(1)
这个框架是我一个做PHP的朋友“祥子”介绍给我的,Git地址https://coding.net/u/srar/p/AMP/git 下面从入口文件 总线程 ( index.php )开始进行分析 &l ...
- 快速调试chromium
上一篇我们简单的将了在Ubuntu上编译chromium,android content_shell_apk的编译,一切顺利的就能生成apk.但是我们仅仅只是照搬了人家google开源的东西,作为一个 ...
- ios 中的block应用
在这个大冬天里默默敲着键盘,勿喷.今天学习swift过程中,学习到闭包,发现闭包和oc的block中有很多的相同之处,又重新学习了一下并且学习了一些高级点的用法,内容如下: 1.block格式说明:( ...
- 理解C#系列 / 核心C# / 名称空间
名称空间namespace 名称空间 名称空间用来逻辑分类,而不是物理上的,名称空间与程序集无关[程序集:经由编译器编译得到的文件],同一个程序集中可以有2不同的名称空间,也可以在不同的程序集中定义同 ...
- 济南学习 Day 4 T2 am
LYK 与实验室(lab)Time Limit:5000ms Memory Limit:64MB题目描述LYK 在一幢大楼里,这幢大楼共有 n 层,LYK 初始时在第 a 层上.这幢大楼有一个秘密实验 ...
- Codevs 1669 运输装备
时间限制: 1 s 空间限制: 256000 KB 题目等级 : 钻石 Diamond 题解 查看运行结果 题目描述 Description 德国放松对英国的进攻后,把矛头指向了东北—— ...
- C++ 嵌入汇编 获取CPU信息
#include "windows.h" #include "iostream" #include "string" using names ...
- python 中range与xrange的区别
先来看看range与xrange的用法介绍 help(range)Help on built-in function range in module __builtin__: range(...) r ...
- <hash命令:显示、添加或清除哈希表>
linux系统下的hash指令: 说明:linux系统下会有一个hash表,当你刚开机时这个hash表为空,每当你执行过一条命令时,hash表会记录下这条命令的路径,就相当于缓存一样.第一次执行命令s ...
- 清空系统日志shell scripts——自学笔记
这是一个清空系统日志的脚本: vim logmess_clean.sh #bin/bash //该脚本所使用的shell解释器 cd /var/log/ //切换到存放日志目录 ech ...