I am using Eclipse Version: Oxygen.1a Release (4.7.1a) and I want to enlarge the Project Explorer tree view font size because I have some sight issues and thus I searched ma
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
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.
To increase font size of eclipse project explorer window for eclipse 2020-06.
First check the theme, you are using in the eclipse from preferences.Increase the value of below property for that theme. For example, if you are using light theme.
In file: /Applications/Eclipse.app/Contents/Eclipse/plugins/org.eclipse.ui.themes_1.2.1000.v20200528-1125/css/light/e4-light_partstyle.css,
Add property if missing or if it is already present, just increase value of font size.
.MPart Tree {
font-size: 13;
}
Thanks for the help. In my case, I use the Dark [Mac OS X] theme in Eclipse Photon on Windows 7, so the file I had to alter was e4-dark_mac.css
in eclipse\plugins\org.eclipse.ui.themes_X.X.X.vXXXXXXXX-XXXX\css
. Also the .MPart Tree
was not in the file so I had to add it as opposed to editing it. I added right under another .Mpart
entry so my file looked like below.
...
.MpartStack, .Mpart {
font-family: '#org-eclipse-ui-workbench-TAB_TEXT_FONT';
}
.Mpart Tree {
font-size: 12;
}
...
I'm using Eclipse 2018-09 and could't found .css file similar gtk at Eclipe directory.
But I discover custom css menu on Jeeyul's theme(plugin for Eclipse Color UI).
Just typing css style above comments. And apply and close.
In the end, change UI style.
Answer from Al Breight worked perfectly on Oxygen.3a Release (4.7.3a), Ubuntu 18.04. @pkeller comment (Oct 16 at 14:05) confirmed and solved editing 'Git Uncommited Change Font' size option in Window->Preferences->General->Appearance->Colors and Fonts:
Ankit Fulzele's answer helped me with minor adjustments.
I use Dark Theme on Mac and the following worked for me for Eclipse 2019-06:
Add the following lines to ~/.p2/pool/plugins/org.eclipse.ui.themes_{version}/css/dark/e4-dark_basestyle.css
Tree {
font-family: '#org-eclipse-ui-workbench-TAB_TEXT_FONT';
}
Instead of setting a fixed font, this will pin it to whatever the "Preferences -> General -> Appearance -> Colors and Fonts -> View and Editor Folders -> Part title font" is configured to.
Note: It would make more sense to pin this to another setting, e.g. to "Preferences -> General -> Appearance -> Colors and Fonts -> Basic -> Text Font", but couldn't find the CSS reference for it.
Note: This update will change not only the "Project Explorer" tab, but others as well.