I cannot change the font size of package explorer in Eclipse

后端 未结 11 1022
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-30 01:25

I try to change the font size of package explorer in Eclipse from menu WindowPreferencesGeneralAppearance, and I fail to change

相关标签:
11条回答
  • 2020-11-30 01:57

    In Eclipse 4.7.x the CSS files are under eclipse⁩/⁨plugins⁩/⁨org.eclipse.ui.themes_1.2.1.v20170809-1435⁩/⁨css⁩/

    In my case I use the dark theme for OSX, so I opened the file e4-dark_mac.css and added the font-size line:

    CTabFolder Tree, CTabFolder Canvas {
        background-color: #2F2F2F;
        color: #CCC;
        font-size: 13pt; // new 
    }
    
    0 讨论(0)
  • 2020-11-30 02:00

    This worked for me:

    .MPart Tree{
      font-size: 8;
    }
    
    0 讨论(0)
  • 2020-11-30 02:05

    On Ubuntu 14.04 (Trusty Tahr) this was the best choice for me:

    .MPart Tree{
      font-size: 10;
    }
    
    0 讨论(0)
  • 2020-11-30 02:05

    Thanks to Veger's reply, I successfully changed the font of my PHP Explorer in PHP Perspective (with PDT installed). The following CSS code,

        #org-eclipse-php-ui-explorer Tree {
           font-family: Consolas;
           font-size: 21px;
        }
    

    are added into my "eclipse-4.3\plugins\org.eclipse.platform_4.3.1.v20130911-1000\css\e4_default_win7.css" file.

    You may choose a different CSS file, depending on the theme you choose through PreferencesGeneralAppearance: "Theme" drop-down list).

    0 讨论(0)
  • 2020-11-30 02:07

    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.

    0 讨论(0)
提交回复
热议问题