Eclipse set background color and font color

2020/10/1816:52:04 technology 2180

1. First, it is the way to set the background color. After opening Eclipse, click Windows -> Preference in turn. Open the interface

configuration dialog box. Operate as shown in the figure

Eclipse set background color and font color - DayDayNews

2. After entering the dialog box:

expand the General tab, select the Editors option, and then select Test Editors, and the Test Editors panel appears on the right. There is such an option in the panel: Appearance color options; Among them are the settings of various panel colors, one of which is background color, choose the color according to your preferences. 2. Select background color, tick off System Default, click the color block of'color', and the color selection panel will appear. The operation is as shown in the figure

Eclipse set background color and font color - DayDayNews

3. The background color used in this example can relieve eye fatigue and bean paste green, which is softer and

is set to: hue: 85. Saturation: 120. Brightness: 208, you can

Eclipse set background color and font color - DayDayNews

4. After clicking Apply, the background color is set. Let's talk about how to change the text color (using the Java editor as an example).

Back to the Preference dialog box:

1, expand the Java tab, expand the Editor tab, click the Syntax Coloring tab, and a tab will pop up on the right.

2, click on the Java tab in the small window above to start changing the code color configuration.

Eclipse set background color and font color - DayDayNews

5. The operation is shown in the figure. In order to match the background color of bean paste green, the color scheme below is set by myself. Friends who like DIY can also modify it on this basis: (The values ​​here are all red, green and blue— RGB setting)

Annotations: 107 147 186 Light blue

symbol Brackets: 255 128 0 Orange

Class name Classes: 0 80 50 Bold dark green

Constant Constant: 202 0 202 Bold rose red

Deprecated members Deprecated members : 123 23 43 Enumeration in bold brown

Enums: 128 0 255 Purple

Variable Fields: 128 0 128 Dark purple

return Keyword Keyword'return': 255 0 85 Red bold

Other keywords Keyword excluding'return ': 207 46 125 Rose red bold

Method definition Method declarations: 255 128 64 Orange bold

Method Methods: 0 48 96 Dark blue

Number Numbers: 42 0 255 Blue

Operators: 255 128 0 Orange

Others :78 123 0 Green

Static variable Staticfields: 33 0 189 Blue bold

String Strings: 132 26 138 Purple

After the change, it is as shown in the figure below. Click Apply to apply

Eclipse set background color and font color - DayDayNews

technology Category Latest News