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

前端 未结 23 782
孤城傲影
孤城傲影 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 17:17

    FYI:

    From Eclipse v4.4 (Luna):

    It looks like the CSS files are no longer in the old folder:

    eclipse/plugins/org.eclipse.platform_4.x.x.vy/css
    

    They are moved to the new folder:

     eclipse/plugins/org.eclipse.ui.themes_x.x.x.vxxxxx/css
    

    And you must select a theme to apply it, in the menu

    WindowsPreferencesGeneralAppearance

    0 讨论(0)
  • 2020-11-29 17:18

    In 2010, there was no way in Eclipse to change the font used for Package Explorer and other such views. You can only change the font for editor views. This is a policy decision on the part of the Eclipse developers (see, e.g., bugs 49548, 202091). (Grumble.) The font used is the one set by the general look-and-feel for whatever desktop you are using.

    On Linux it is possible to override the system font when you invoke Eclipse. An excellent writeup of various possibilities is here, to which I owe this answer. I'll repeat one suggestion from there for posterity. Create a file named, say, gtkrc-eclipse:

    style "eclipse" {
      font_name = "Sans Condensed 8"
    }
    class "GtkWidget" style "eclipse"
    

    Then set a certain environment variable when invoking eclipse:

    $ GTK2_RC_FILES=gtkrc-eclipse eclipse
    
    0 讨论(0)
  • 2020-11-29 17:18

    This answer applies to Mac OS X user. Tested with Mavericks (10.9.2) but should work in all versions.

    As stated before in previous answers, to change the font size in package explorer you need to change system font size. The problem here is to do exactly this. My solution:

    1. Download the free Tinker Tool utility and adjust font sizes.
    2. Restart Eclipse

    enter image description here

    The results:

    enter image description here

    Happy coding!

    0 讨论(0)
  • 2020-11-29 17:18

    In windows server,

    go to control panel-->Display section. If default setting is Smaller like picture,you can change the size for your demand,also you can change only the specific text size by option

    Note: It is applied based on system setting ,not only for Eclipse based platform.

    0 讨论(0)
  • 2020-11-29 17:19

    Eclipse inherits the font size of the GUI items, from the operating system. For a demo for example you might want to increase the font size of your OS.

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