Eclipse font and background color Configuration

Source: Internet
Author: User

Bean Paste Green: tone: 85, saturation: 1 2 3, brightness: 2 0 5.

The document is no longer an eye-catching black text, but rather gentleBean Paste green,This tone isOphthalmology expert ConfigurationLong time use can effectively relieve eye fatigue and protect the eyes.

 

 

Solution 1:

In the workspace directory, find the. Metadata/. plugins/org. Eclipse. Core. runtime/. Settings/directory, and replace the two files.
By the way, you have to manually set the font once after replacement. I use the consolas 14pts
Org. Eclipse. jdt. UI. prefs

#Wed Dec 23 14:31:26 CST 2009secondaryIPColor=45,70,56AbstractTextEditor.Color.Background=25,25,25eclipse.preferences.version=1spacesForTabs=truewriteOccurrenceIndicationColor=61,63,37AbstractTextEditor.Color.Foreground.SystemDefault=falseAbstractTextEditor.Color.Foreground=128,255,0AbstractTextEditor.Color.SelectionBackground=65,76,59currentIPColor=45,70,56overviewRuler_migration=migrated_3.1lineNumberRuler=truedeletionIndicationColor=255,0,0searchResultIndicationColor=51,51,79currentLineColor=34,34,32AbstractTextEditor.Color.SelectionForeground=255,255,255printMarginColor=192,192,192occurrenceIndicationColor=72,72,72AbstractTextEditor.Color.SelectionBackground.SystemDefault=falseAbstractTextEditor.Color.Background.SystemDefault=falselineNumberColor=0,128,192AbstractTextEditor.Color.FindScope=25,25,25AbstractTextEditor.Color.SelectionForeground.SystemDefault=false

Org. Eclipse. UI. Editors. prefs

#Sun Mar 21 22:41:48 CST 2010pf_coloring_argument=128,255,0sp_cleanup.remove_private_constructors=truesemanticHighlighting.methodDeclarationName.enabled=truesp_cleanup.sort_members_all=falsesp_cleanup.format_source_code=falsesp_cleanup.never_use_blocks=falsesemanticHighlighting.enum.enabled=truesp_cleanup.remove_unused_private_members=falsesp_cleanup.use_this_for_non_static_field_access=falsesp_cleanup.remove_unnecessary_casts=trueorg.eclipse.jdt.ui.text.code_templates_migrated=truepf_coloring_key=255,200,0sp_cleanup.add_missing_nls_tags=falsesemanticHighlighting.localVariableDeclaration.enabled=truesemanticHighlighting.interface.enabled=truesp_cleanup.remove_trailing_whitespaces=falsecontent_assist_autoactivation_triggers_java=.abcdefghijklmnopqrstuvwxyzsemanticHighlighting.inheritedMethodInvocation.color=227,183,53sp_cleanup.always_use_blocks=truesp_cleanup.add_missing_methods=falseLexicalSortingAction.isChecked=truesemanticHighlighting.typeParameter.color=205,177,173org.eclipse.jdt.ui.editor.tab.width=sp_cleanup.always_use_this_for_non_static_field_access=falsesp_cleanup.never_use_parentheses_in_expressions=truebreadcrumb.org.eclipse.jdt.ui.JavaPerspective=truesourceHoverBackgroundColor=255,255,225java_keyword_return=236,108,30org.eclipse.pde.ui.ExternalPluginLibrariesFilter1=truespelling_user_dictionary_encoding=spelling_locale_initialized=trueorg.eclipse.jdt.ui.text.custom_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates/>org.eclipse.jdt.ui.PackageExplorer_patternFilterId_.*=truecontent_assist_proposals_background=255,255,255semanticHighlighting.method.color=247,197,39semanticHighlighting.interface.color=255,128,128semanticHighlighting.method.enabled=truesp_cleanup.make_variable_declarations_final=trueorg.eclipse.jdt.ui.PackageExplorer_patternFilterId_RemoteSystemsTempFiles=truesp_cleanup.on_save_use_additional_actions=falsesp_cleanup.remove_unnecessary_nls_tags=falseorg.eclipse.jdt.ui.overrideannotation=trueorg.eclipse.jdt.ui.text.templates_migrated=truecontent_assist_parameters_foreground=230,230,230spelling_ignore_non_letters=truejava_string=89,196,196spelling_ignore_digits=truesemanticHighlighting.parameterVariable.enabled=trueorg.eclipse.jdt.ui.javadoclocations.migrated=truejava_doc_tag=64,149,108semanticHighlighting.staticMethodInvocation.color=255,255,255org.eclipse.jdt.internal.ui.PackageExplorer.HideInnerClassFilesFilter=truespelling_ignore_single_letters=trueCustomFiltersActionGroup.org.eclipse.jdt.ui.PackageExplorer.TAG_DUMMY_TO_TEST_EXISTENCE=storedViewPreferenceshoverModifierMasks=org.eclipse.jdt.ui.BestMatchHover;0;org.eclipse.jdt.internal.debug.ui.JavaDebugHover;0;org.eclipse.jdt.ui.ProblemHover;0;org.eclipse.jdt.ui.NLSStringHover;327680;org.eclipse.jdt.ui.JavadocHover;0;org.eclipse.jdt.ui.JavaSourceHover;131072;org.eclipse.jdt.ui.AnnotationHover;0;sp_cleanup.convert_to_enhanced_for_loop=falsesp_cleanup.always_use_parentheses_in_expressions=falsesp_cleanup.use_parentheses_in_expressions=falsepf_coloring_assignment=255,255,255sp_cleanup.remove_unused_private_methods=truesemanticHighlighting.class.color=255,128,192sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=truesp_cleanup.always_use_this_for_non_static_method_access=falsetabWidthPropagated=truejava_comment_task_tag=64,128,128sp_cleanup.qualify_static_method_accesses_with_declaring_class=falseorg.eclipse.jdt.ui.PackageExplorer.PackageDeclarationFilter=truesemanticHighlighting.deprecatedMember.color=255,255,255sp_cleanup.add_default_serial_version_id=trueorg.eclipse.jdt.ui.PackageExplorer.ImportDeclarationFilter=truesp_cleanup.make_private_fields_final=truejava_doc_link=0,128,255org.eclipse.jdt.ui.PackageExplorer_patternFilterId_RemoteSystemsConnections=truesp_cleanup.add_serial_version_id=falsesp_cleanup.add_missing_deprecated_annotations=truespelling_ignore_urls=truesemanticHighlighting.annotation.color=192,192,192pf_coloring_value=255,255,255semanticHighlighting.typeArgument.enabled=truesemanticHighlighting.abstractMethodInvocation.color=241,196,54sp_cleanup.add_missing_annotations=trueorg.eclipse.jdt.ui.gettersetter.use.is=trueorg.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates/>lastRecentlyUsedFilters=org.eclipse.jdt.internal.ui.PackageExplorer.EmptyInnerPackageFilter,spelling_ignore_mixed=truesemanticHighlighting.staticField.color=255,255,255org.eclipse.jface.textfont=1|Consolas|14.25|0|WINDOWS|1|-19|0|0|0|400|0|0|0|0|3|2|1|49|Consolas;sp_cleanup.add_missing_override_annotations=truesp_cleanup.remove_unused_private_types=truesp_cleanup.organize_imports=truesemanticHighlighting.typeParameter.enabled=truesp_cleanup.remove_unused_imports=falsesemanticHighlighting.staticFinalField.color=128,255,0semanticHighlighting.abstractMethodInvocation.enabled=truesp_cleanup.add_generated_serial_version_id=falsesemanticHighlighting.localVariable.color=70,140,179sp_cleanup.qualify_static_member_accesses_with_declaring_class=falsesp_cleanup.use_this_for_non_static_method_access=falsecontent_assist_parameters_background=0,0,0sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=truecontent_assist_disabled_computers=org.eclipse.jdt.ui.javaAllProposalCategory\u0000org.eclipse.jdt.ui.javaNoTypeProposalCategory\u0000org.eclipse.jdt.ui.textProposalCategory\u0000org.eclipse.jdt.ui.javaTypeProposalCategory\u0000semanticHighlighting.inheritedMethodInvocation.enabled=truesp_cleanup.make_local_variable_final=falsesp_cleanup.remove_trailing_whitespaces_all=truejava_multi_line_comment=0,128,64semanticHighlighting.parameterVariable.color=64,128,0sp_cleanup.format_source_code_changes_only=falsesp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=trueorg.eclipse.jdt.ui.formatterprofiles.version=11useAnnotationsPrefPage=truesp_cleanup.remove_unused_private_fields=truesp_cleanup.use_blocks=falseuseQuickDiffPrefPage=truefontPropagated=truejava_keyword=236,105,30java_single_line_comment=0,128,64semanticHighlighting.localVariable.enabled=trueorg.eclipse.jdt.ui.PackageExplorer.EmptyLibraryContainerFilter=truesemanticHighlighting.enum.color=64,128,0sp_cleanup.remove_trailing_whitespaces_ignore_empty=falseeclipse.preferences.version=1sp_cleanup.sort_members=falsejava_doc_keyword=0,128,0semanticHighlighting.localVariableDeclaration.color=70,140,179hoverModifiers=org.eclipse.jdt.ui.BestMatchHover;0;org.eclipse.jdt.internal.debug.ui.JavaDebugHover;\!0;org.eclipse.jdt.ui.ProblemHover;\!0;org.eclipse.jdt.ui.NLSStringHover;Ctrl+Alt;org.eclipse.jdt.ui.JavadocHover;\!0;org.eclipse.jdt.ui.JavaSourceHover;Shift;org.eclipse.jdt.ui.AnnotationHover;\!0;java_bracket=255,255,255semanticHighlighting.class.enabled=truespelling_ignore_sentence=truesp_cleanup.make_type_abstract_if_missing_method=falsesp_cleanup.qualify_static_field_accesses_with_declaring_class=falsespelling_ignore_upper=truesp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=truesemanticHighlighting.staticFinalField.enabled=truesemanticHighlighting.methodDeclarationName.color=241,196,56sp_cleanup.use_blocks_only_for_return_and_throw=falsejava_operator=255,255,255sp_cleanup.correct_indentation=falsejava_default=255,255,255sp_cleanup.make_parameters_final=falsecontent_assist_number_of_computers=18sp_cleanup.remove_unused_local_variables=falsespelling_ignore_ampersand_in_properties=trueorg.eclipse.jdt.ui.PackageExplorer.SyntheticMembersFilter=trueorg.eclipse.jdt.ui.exception.name=econtent_assist_proposals_foreground=255,146,66java_doc_default=64,149,108semanticHighlighting.field.color=97,139,239org.eclipse.jdt.internal.ui.PackageExplorer.EmptyInnerPackageFilter=trueproposalOrderMigrated=truesemanticHighlighting.typeArgument.color=217,176,172spelling_ignore_java_strings=true

This will not interfere with the global configuration of eclipse and is more flexible.

Yufeng technology tutorial network http://www.fengfly.com
Http://www.fengfly.com/plus/view-173150-1.html

 

Solution 2:

Change the background color (black background settings)

Windows> preferences> General> editor> text editors

Select appearance color options on the right

Select background color

Select current line highlight to change the color of the selected row

 

Change font color

Windows> preferences> JAVA> editor> syntax coloring

Select Java on the right and select the color as needed.

Detailed following color scheme:

Annotations (Note): 107,147,186

Deprecated members (not recommended members): 0, 0, 0

Fields (field): 128,255, 0 green

Keyword 'Return '(keyword 'Return'): 255, 0, 0 red

Keyword excluding 'Return '(except for the keyword):, 80, 0 deeply orange

Local variable declarations (local variable declaration): 70,140,179 dark blue

Method declarations (method declaration): 247,197, 39 pale orange

Method: 241,196, 54 dark orange

Operators and brackets (operator and square brackets): 255,128, 0 dark orange

Others (Others): 126,202, 0 light green

Static fields (static field): 128,255, 0 green

Static method invocations (static method call): 77,166 255

Strings (string): 89,196,196 mercury blue

Type variables (type variables): 222, 0, 25 red



 

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.