Modify the background color of the Code in Eclipse:The default color of the code editing page is white. For those who have been using computer programming for a long time, white is very irritating to our eyes, so changing the background color of workspace can make our eyes more comfortable. The setting method is as follows:
1. Open Window/preference. The preference panel is displayed. 2. Expand the General tag, select the editors option, and expand. 3. Select text editors and the testeditors panel appears on the right. The Panel has the following options: appearance color options, which is the setting of various plate colors. One of the options is background color. Remove system default and click 'color'. The color selection panel is displayed, select a preferred color and click OK.
Note: recommended by background color ophthalmology experts: The color is 85, the saturation is 123, and the brightness is 205. The document is no longer an eye-catching black text, but a very soft bean paste green. This color is configured by an eye expert. It can effectively relieve eye fatigue and protect the eyes for a long time.
4. Return to test editors and click Apply. Expand test editors and have other options, such as changing the color style of the error message.
Eclipse font size adjustment:
Window/preferences/General/appearance/colorsand fonts. In the dialog box on the right, select java-java editor text font and click the edit button, you can set the font size of the program displayed in the main form, click Apply in the lower right corner, and click OK.
Adjust the font size of the XML file: Window/preferences/General/appearance/colors and fonts/basic/"text font", and click Edit to set the font size.
Note: The above method is just a simple background solution setting in eclipse. You can also use a special plug-in to set the code background in eclipse. You can view the Eclipse plug-in: eclipse color theme.