How can I configure the font size for the tree item in the package explorer in Eclipse?

前端 未结 23 878
孤城傲影
孤城傲影 2020-11-29 16:33

How can I configure the font size for the tree item in the package explorer/outline in Eclipse?

Which item in Font under Preferences I should change?

23条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-29 16:55

    For Mac users:

    In file:

    plugins/org.eclipse.ui.themes_1.0.1.v20140819-1717/css/dark/e4-dark_globalstyle.css
    

    Find this code snippet:

    Shell[style~='SWT.RADIO'][style~='SWT.CASCADE'][style~='SWT.SHADOW_ETCHED_IN']
    [style~='SWT.SHADOW_ETCHED_OUT'][style~='SWT.RESIZE'][style~='SWT.MENU'][style~='SWT.FULL_SELECTION']
    [style~='SWT.DATE'] > Composite > * > Tree {
    
        background-color: #2F2F2F;
        color: #CCC;
    }
    

    Modify it adding information about the font size:

    Shell[style~='SWT.RADIO'][style~='SWT.CASCADE'][style~='SWT.SHADOW_ETCHED_IN']
    [style~='SWT.SHADOW_ETCHED_OUT'][style~='SWT.RESIZE'][style~='SWT.MENU'][style~='SWT.FULL_SELECTION']
    [style~='SWT.DATE'] > Composite > * > Tree {
    
        background-color: #2F2F2F;
        color: #CCC;
        font-size: 13;
    }
    

    This example is for the Dark theme in Eclipse v4.4 (Luna).

提交回复
热议问题