Eclipse - Changing Font Size in Project/Package Explorer

Change Project Explorer tree view font size in Eclipse Oxygen

I assume that it is important for others also, so I am posting this, for below requireds in eclipse ide,

Increase java editor font size

Window Menu -> Preferences -> General > Appearance > Color and Fonts > Java > Java Editor Text Font > Edit & Apply

Increase console output font size

Window Menu -> Preferences -> General > Appearance > Color and Fonts > Debug > Console font > Edit & Apply

Increase xml bean file font size

Window Menu -> Preferences -> General > Appearance > Color and Fonts > Basic > Text Font > Edit & Apply

Increase dialog view font size

Window Menu -> Preferences -> General > Appearance > Color and Fonts > Basic > Dialog Font > Edit & Apply

Increase project explorer tree view font size

Sample Image

If using Windows 7 or higher architecture, then reach to the eclipse home directory,
go inside of eclipse\plugins\org.eclipse.ui.themes_X.X.X.vXXXXXXXX-XXXX\css directory,
find two css files which are "e4_default_gtk.css" and "e4_default_win.css",
open and add below said css script part in tail of above two files, save those and close accordingly,

.MPart Tree {
font-family: Consolas;
font-size: 14;
}

if eclipse is opened, restart, it all worked for me on eclipse oxygen.1a release version,

and hope on other OS type, you have to edit the same e4_default_gtk.css and other e4_default_os-type.css, thanks.

I cannot change the font size of package explorer in Eclipse

Eclipse is using native Windows widgets and their settings can only be changed from Display Properties / Settings / Advanced / General properties tab. There you can change your screen DPI to alter font sizes.

How can I change the Eclipse GUI font?

Most of the controls in Eclipse (such as tree views) use native OS widgets. For these, the font face or size cannot be adjusted in Eclipse. You have to adjust it at OS level.



Related Topics



Leave a reply



Submit