How to reduce the size of Eclipse Juno and Kepler tab fonts on Linux

As my home PC has Windows 7 installed I run Linux on a VirtualBox virtual machine. With modern 16:9  monitors vertical pixels are a scarce resource and I don’t like wasting them. The Windows taskbar uses some, others are used by VirtualBox, a little more by MATE‘s own taskbar and by its window top bar. Luckily it is very easy to set change font sizes in MATE and I’m currently using 8 size fonts for everything… except that the font in the tabs of Eclipse Juno, the IDE I’m currently using, stubbornly refuses to obey my settings.

However it’s not that hard to tame it: as explained in this StackOverflow answer you just have to edit the e4_default_gtk.css file in the plugins/org.eclipse.platform_4.2.*/css directory of your Eclipse installation (the middle name depends on the exact Eclipse version), find the .MPartStack element and comment out the font-size definition:

.MPartStack {
/* font-size: 11; */
swt-simple: false;
swt-mru-visible: false;

This problem is also present in Eclipse Kepler and is solved in the same way.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: