Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I cannot change the font size of package explorer in Eclipse

Tags:

css

eclipse

e4

I try to change the font size of package explorer in Eclipse from menu WindowPreferencesGeneralAppearance, and I fail to change the font size. How can I do that? I use Eclipse v4.2 (Juno) on Windows 7.

like image 512
Mohammed Subhi Sheikh Quroush Avatar asked Jan 25 '13 20:01

Mohammed Subhi Sheikh Quroush


People also ask

How do I change the font size in Project Explorer in Eclipse?

Go to Preferences > General > Appearance > Colors and Fonts, expand the "Basic" folder and select "Text Font" and change that to whatever size you like.

How do I fix package explorer in Eclipse?

You could try holding down Ctrl + F7 to see a list of all views, then up/down arrow to the View. If Package Explorer is in the list it has been minimised or something. If you select it and still can't see it, try Window → Reset Perspective... to restore all views to their defaults.


1 Answers

On Juno and up you can adjust that font by CSS.

Lookup the files in eclipse\plugins\org.eclipse.platform_4.2.x.y\css for your current style sheet (probably e4_default_win7.css), and then just add the following rule:

#org-eclipse-jdt-ui-PackageExplorer Tree, #org-eclipse-ui-navigator-ProjectExplorer Tree {   font-size: 10px; /* <-- Desired font size */ } 

Update: stylesheets are in eclipse/plugins/org.eclipse.ui.themes_x.x.x.vxxxxx/css folder since Eclipse 4.4 (Luna).

like image 116
Diego V Avatar answered Sep 19 '22 23:09

Diego V