Eclipse How to modify fonts, colors, compiler background colors, and more

Source: Internet
Author: User
Tags deprecated

1.eclipse Background color settings:
Window->preferences->general->editors->text Editors->backgroud Colors
Cancel the system default setting to: RGB (204,232,207).

2. Font Size setting:

Java fonts:
Menu Windows>prefenrence>general appearance>colors and Fonts select java> Java Editor Text Font in the menu on the right
Similar to the other languages of Eclipse, this is also the case, just replace Java with the corresponding.

XML font: Colors and Fonts for Basic

Console font: COLRS and Fonts find Debug->console font

Eclipse Background Color Modification:

The default color of the operator interface is white. For our long-term use of computer programming people, White is very stimulating our eyes, so I often change the background color of workspace, make the eyes more comfortable. The Setup method is as follows:
1. Open window-> Preference, pop-up Preference panel
2. Expand the General tab, select the Editors option, and expand.
3. Check test Editors, the test Editors panel appears on the right. There is an option in the Panel: Appearance color options, which is a variety of plate color settings, one of which is background color, choose the color according to your preference.
4. Select background color, tick off system Default, click ' Color ', pop up the color selection panel, select the color you prefer, and click OK.
5. Return to test Editors and click Apply. Expand Test Editors, there are other options, such as the color style of the error prompt, and if you are interested, try changing it.

Background color recommended to you: Hue: 85. Saturation: 1 2 3. Brightness: 2 0 5

Documents are no longer the glare of the white black word, but very soft red bean paste green, this tone is the eye specialist configuration, long-time use will be effective to alleviate eye fatigue to protect the eyes.

Change the background color
Windows->preferences->general->editor->text Editors
Right Select appearance color options
Choose background color to select a background color
Select Current line highlight to change the color of the currently selected row

Color scheme Detailed following:

Eclipse Font Sizing:
Window-Preferences (Preferences)-General-appearance (appearence)-Colors and fonts (Colors and Fonts), select Java-java Editor Text font in the dialog box on the right , click the Change button that appears, you can set the font size of the program displayed in the main form, click Apply in the bottom right corner after setting up, and then click OK.

Chinese characters across Eclipse show how to solve

There are two ways to display the same font, such as Fixedsys Excelsior 3.01 and @fixedsys Excelsior 3.01, the previous Chinese character is displayed vertically, and the latter is displayed horizontally. In the Preferences->java->editor->syntax coloring, click Colors and Fonts in the upper-right corner, and in the popup dialog box, locate the Java->java Edit Text Font, Double-click the font to select a font with no @ above to solve the problem of cross-Chinese characters.

Font size adjustment FOR XML:
Window--preferences--general--appearance--colors and fonts--basic--"Text font"

Then click Change to set the font size

Eclipse changes color, background

A visually pleasing code color palette will make the coding process a pleasant one, making writing much more efficient. Eclipse's default code color is ugly, except that the key is brown and the string is blue, and the remaining colors are black. In such a color, the hardest to distinguish is the local variables and types of private fields (others can be judged by the casing rules, if the code is written enough). And too monotonous color, not easy to stimulate the optic nerve and even the central nervous, will increase the fatigue feeling, bring sleepy meaning.

To change this, we have to make changes to eclipse's code color.

My Code color



Change font Color
Windows->preferences->java->editor->syntax Coloring
Choose Java on the right and you can choose the color freely.

annotations (note): 107, 147, 186   light blue
Deprecated members (not recommended): 0, 0, 0  
fields (field): $, 0, +   Purple
KeyWord ' return ' (keyword ' return '): 255, 0, 0   Red
KeyWord excluding ' return ' (except for the keyword): 255, $, 0  ; Orange
Local variable declarations (local variable declaration): $, $,   gray
Method declarations (method declaration): 255, +,     ; Orange
Method:  0, 48, 96 dark light blue
Operators and brackets (operator and square brackets): 255,, 0   Orange
Others (Other): 96 153, 0 & nbsp Dark green
Static fields: 0, 189   dark blue
Static methods invocations (static method call): 166 255   Sky blue  
Str Ings (String): 238   sky blue
Type variables (type variable): + 0, +   red-color

Learning starts from now

Second programme

Change background color (setting on black background)
Windows->preferences->general->editor->text Editors
Right Select appearance color options
Choose background color to select a background color
Select Current line highlight to change the color of the currently selected row

color scheme detailed following: 
Annotations (note): 107, 147, 186 
Deprecated members (not recommended): 0, 0, 0 
Fields (field): 128,255,0 green
KeyWord ' return ' (keyword ' return '): 255, 0, 0   Red
KeyWord excluding ' return ' ( return except keywords): 255,80, 0   deep orange
local variable declarations (local variable declaration): 70,140,179   dark blue
Method declarations (method declaration): 247,197,39   Light Orange
Method:  241,196,54   Deep light orange
Operators and brackets ( operator and square brackets): 255, 0   Dark orange
Others (Other): 126, 202, 0   light green
static fields (static field): 128,255,0 green
Static Metho D invocations (static method invocation): 166 255  
Strings (String):  89,196,196   ink Blue
Type variables (type variable): 222, 0, 25   Red

Eclipse changes font size and color, background
Change font
Windows->preferences->general->appearance->colors and Fonts
Right Select Java->java Editor Text Font Select the font you like

Change font Color
Windows->preferences->java->editor->syntax Coloring
Choose Java on the right and you can choose the color freely.

Change the background color
Windows->preferences->general->editor->text Editors
Right Select appearance color options
Choose background color to select a background color
Select Current line highlight to change the color of the currently selected row

Color scheme Detailed following:
Annotations (note): 107, 147, 186
Deprecated members (not recommended for use): 0, 0, 0
Fields (field): 128, 0, 128
KeyWord ' return ' (keyword ' return '): 255, 0, 0
Keyword excluding ' return ' (other than keywords): 255, 0, 128
Local variable declarations (variable declaration): 128, 128, 128
Method declarations (Methods declaration): 255, 128, 64
Method (Methods): 74, 165, 255
Operators and brackets (operator and square brackets): 255, 128, 0
Others (Other): 126, 202, 0
Static fields: 33, 0, 189
static method invocations (statically called): 77, 166 255
Strings (String): 132, 26, 238
Type variables (types variable): 128, 0, 25

Eclipse How to modify fonts, colors, compiler background colors, and more

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.