How can I configure the font size for the tree item in the package explorer/outline in eclipse? Which item in Font under Preference I should change?
Thank you.
|
How can I configure the font size for the tree item in the package explorer/outline in eclipse? Which item in Font under Preference I should change? Thank you. |
|||||
|
Ubuntu, eclipse Luna*
*performed on ScalaIDE version of eclipse Luna, should be the same for regular eclipse Luna I think. |
|||
|
|
|
The following solution works on Mac OS with Eclipse Luna. Choose Mac appearance: Window > Preferences > General > Appearances > Theme: Mac. Add a copy of the following code snippet contained in plugins/org.eclipse.ui.themes_1.0.1.v20140819-1717/css/dark/e4-dark_globalstyle.css to the end of the file plugins/org.eclipse.ui.themes_1.0.1.v20140819-1717/css/e4_default_mac.css.
|
|||
|
|
|
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:
Modify it adding informations about the font size:
This example is for the Dark theme in Eclipse Luna. |
||||
|
|
|
As someone has already mentioned above, modifying the "e4_basestyle.css" file worked for me on Keplar windows 8. Thanks! Also, I find that you must also change the text size/style under: preference->Team->Git->LabelDecorations or preference->Appearance->ColorsAndFonts, under Git section to make sure that text size/colors for uncommitted files are in sync with your changes. This is of course if you init your project as a repository. |
|||
|
|
|
FYI: From Eclipse Luna(4.4) Looks like the css files are no longer in old folder:
they are moved to the new folder:
And you must select a theme to apply it, in the menu
|
|||
|
|
|
just found all those answers for changing tree view font size in eclipse, tried several and finally got on the css class which reads quite more fashionable to me: The theme I'm using includes the "e4_basestyle.css" in eclipse/opt/plugins/platform/css. There I added
which works very fine with me (Kepler-SR2 on Ubuntu) |
|||||
|
|
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:
The results:
Happy coding! |
|||||||||
|
|
In Windows 8,
|
|||
|
|
|
Here is an option that works on my Windows7 machine suggested by Diego V: http://stackoverflow.com/a/15011440/1713920
|
|||||
|
|
In Juno you can modify the CSS by going to Window > Preferences > General > Appearances
|
|||||||||
|
|
To change fonts in eclipse workspace with ubuntu, I modified system fonts desktop > system > preferences > appearance > fonts also modified eclipse indigo -> windows > preferences > General > Appearances > Colors and fonts. It reflected in eclipse. |
|||||
|
|
On Windows 7, you can affect many of the eclipse GUI fonts, including the Project Explorer by going to: Control Panel -> Personalization -> Window Color and Appearance -> Advanced Appearance Settings Change the font size for "Message Box". Of course this messes with the appearance of other stuff in your OS, but I've found that tolerable compared to squinting at the project explorer... |
|||
|
|
|
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. |
|||
|
|
|
Does your Eclipse .ini file contain a reference to 'smallFonts?' On Mac you might see something like... -Dorg.eclipse.swt.internal.carbon.smallFonts If you remove this line, you'll see the font size in various views fatten up. |
|||||||||||||||||||||
|
|
There is 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:
Then set a certain environment variable when invoking eclipse:
|
|||||||||||||||||||||
|