MacOS – Yosemite: How do increase font size of Eclipse globally

eclipsemacos

Please do not mark this question as duplicate. There are some similar questions, but they are stale. They are about old versions and none of their suggestions solved my issue. (eg: How to increase font size of Eclipse globally?)

I am using eclipse Kepler on Yosemite. I want to change all of my front size in eclipse larger. I am using a 1080p monitor, and it's quite painful to see those small fonts. I found a way to change the package explorer font and java editor font, but I want to change others too. I want to change the fonts in the opened tabs, outline, task and possibly all other views. Is there a way to change them globally? If not, is there a way to change them one by one? I checked "General – Appearance – Colors and Fonts". There is no way to change the fonts on those views.

Here is what I have tried:

  • change the Colors and Fonts from eclipse preference. It can only change the editor's font.

  • remove "-Dorg.eclipse.swt.internal.carbon.smallFonts" from eclipse.ini. It has no effect at all.

  • modify "eclipse kepler/plugins/org.eclipse.platform_4.3.0.v20130605-2000/css/e4_default_mac.css". I learned how to modify the fonts in package Exploer. I just need to add:

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

Modifying the css may be a way to change the fonts of other views, but I don't know how.

Best Answer

Solution for Eclipse Oxygen at MacOS High Sierra (Dec 2017)

  1. Open terminal and run commands:

    cd /Applications/Eclipse.app/Contents/Eclipse/plugins/org.eclipse.ui.themes_1.2.1.v20170809-1435/css
    
    vim e4_basestyle.css
    
  2. Add a style:

    * {
        font-size: 14;
    }
    
  3. Restart Eclipse to apply changes.