eclipse 更改背景颜色字体
切一个自己的图:
废话不说,直接入题。
方式一:替换Eclipse的配置文件
其实Eclipse的各种配置都是在文件设置里的,因此只要用一个配置好的模版来替换默认的配置文件,即可将所有配置克隆到新的Eclipse环境中。这些配置文件在workspace\.metadata\.plugins\org.eclipse.core.runtime\.settings文件夹下。
懒人直接上代码:文件org.eclipse.ui.editors.prefs:
AbstractTextEditor.Color.Background.SystemDefault=false AbstractTextEditor.Color.Foreground.SystemDefault=false lineNumberRuler=true AbstractTextEditor.Color.Foreground=248,248,248 AbstractTextEditor.Color.SelectionBackground=37,59,118 currentLineColor=60,65,77 printMargin=true AbstractTextEditor.Color.Background=12,16,33 lineNumberColor=141,143,173 AbstractTextEditor.Color.SelectionBackground.SystemDefault=false printMarginColor=122,123,139 eclipse.preferences.version=1 breakpointIndicationInOverviewRuler=true occurrenceIndicationColor=60,65,77 overviewRuler_migration=migrated_3.1
文件org.eclipse.jdt.ui.prefs:
content_assist_disabled_computers=org.eclipse.jdt.ui.templateProposalCategory\u0000org.eclipse.jdt.ui.javaNoTypeProposalCategory\u0000org.eclipse.jdt.ui.javaTypeProposalCategory\u0000org.eclipse.jdt.ui.textProposalCategory\u0000 content_assist_lru_history=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><history maxLHS\="100" maxRHS\="10"/> content_assist_number_of_computers=21 content_assist_parameters_background=0,0,0 content_assist_parameters_foreground=255,255,255 content_assist_proposals_background=255,255,255 content_assist_proposals_foreground=26,26,26 eclipse.preferences.version=1 fontPropagated=true java_bracket=0,255,0 java_comment_task_tag=0,128,0 java_default=144,238,144 java_doc_default=128,128,128 java_doc_keyword=128,0,255 java_doc_keyword_bold=false java_doc_link=128,128,192 java_doc_tag=0,128,255 java_keyword=30,144,255 java_keyword_bold=false java_keyword_return=255,0,255 java_keyword_return_bold=false java_multi_line_comment=139,105,20 java_operator=255,255,0 java_single_line_comment=0,128,0 java_string=128,128,128 org.eclipse.jdt.ui.editor.tab.width= org.eclipse.jdt.ui.formatterprofiles.version=12 org.eclipse.jdt.ui.javadoclocations.migrated=true org.eclipse.jdt.ui.text.code_templates_migrated=true org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates/> org.eclipse.jdt.ui.text.custom_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates/> org.eclipse.jdt.ui.text.templates_migrated=true org.eclipse.jface.textfont=1|Consolas|12.0|0|WINDOWS|1|-16|0|0|0|400|0|0|0|0|3|2|1|49|Consolas; proposalOrderMigrated=true semanticHighlighting.abstractMethodInvocation.color=255,165,0 semanticHighlighting.abstractMethodInvocation.enabled=true semanticHighlighting.annotation.color=229,229,229 semanticHighlighting.annotationElementReference.color=191,191,191 semanticHighlighting.annotationElementReference.enabled=true semanticHighlighting.autoboxing.color=230,230,250 semanticHighlighting.autoboxing.enabled=true semanticHighlighting.class.color=173,216,230 semanticHighlighting.class.enabled=true semanticHighlighting.deprecatedMember.color=255,165,0 semanticHighlighting.enum.enabled=true semanticHighlighting.field.color=160,32,240 semanticHighlighting.inheritedMethodInvocation.color=255,192,203 semanticHighlighting.inheritedMethodInvocation.enabled=true semanticHighlighting.interface.color=255,165,0 semanticHighlighting.interface.enabled=true semanticHighlighting.localVariable.color=230,230,250 semanticHighlighting.localVariable.enabled=true semanticHighlighting.localVariableDeclaration.color=229,229,229 semanticHighlighting.localVariableDeclaration.enabled=true semanticHighlighting.method.color=191,191,191 semanticHighlighting.method.enabled=true semanticHighlighting.methodDeclarationName.bold=false semanticHighlighting.methodDeclarationName.color=128,200,64 semanticHighlighting.methodDeclarationName.enabled=true semanticHighlighting.number.color=255,255,255 semanticHighlighting.number.enabled=true semanticHighlighting.parameterVariable.color=229,229,229 semanticHighlighting.parameterVariable.enabled=true semanticHighlighting.staticField.color=255,0,0 semanticHighlighting.staticFinalField.color=144,238,144 semanticHighlighting.staticFinalField.enabled=true semanticHighlighting.staticMethodInvocation.color=255,0,0 semanticHighlighting.typeArgument.enabled=true semanticHighlighting.typeParameter.color=173,216,230 semanticHighlighting.typeParameter.enabled=true sourceHoverBackgroundColor=245,245,181 sourceHoverBackgroundColor.SystemDefault=false sp_cleanup.add_default_serial_version_id=true sp_cleanup.add_generated_serial_version_id=false sp_cleanup.add_missing_annotations=true sp_cleanup.add_missing_deprecated_annotations=true sp_cleanup.add_missing_methods=false sp_cleanup.add_missing_nls_tags=false sp_cleanup.add_missing_override_annotations=true sp_cleanup.add_serial_version_id=false sp_cleanup.always_use_blocks=true sp_cleanup.always_use_parentheses_in_expressions=false sp_cleanup.always_use_this_for_non_static_field_access=false sp_cleanup.always_use_this_for_non_static_method_access=false sp_cleanup.convert_to_enhanced_for_loop=false sp_cleanup.correct_indentation=false sp_cleanup.format_source_code=false sp_cleanup.format_source_code_changes_only=false sp_cleanup.make_local_variable_final=false sp_cleanup.make_parameters_final=false sp_cleanup.make_private_fields_final=true sp_cleanup.make_type_abstract_if_missing_method=false sp_cleanup.make_variable_declarations_final=true sp_cleanup.never_use_blocks=false sp_cleanup.never_use_parentheses_in_expressions=true sp_cleanup.on_save_use_additional_actions=false sp_cleanup.organize_imports=true sp_cleanup.qualify_static_field_accesses_with_declaring_class=false sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true sp_cleanup.qualify_static_member_accesses_with_declaring_class=false sp_cleanup.qualify_static_method_accesses_with_declaring_class=false sp_cleanup.remove_private_constructors=true sp_cleanup.remove_trailing_whitespaces=false sp_cleanup.remove_trailing_whitespaces_all=true sp_cleanup.remove_trailing_whitespaces_ignore_empty=false sp_cleanup.remove_unnecessary_casts=true sp_cleanup.remove_unnecessary_nls_tags=false sp_cleanup.remove_unused_imports=false sp_cleanup.remove_unused_local_variables=false sp_cleanup.remove_unused_private_fields=true sp_cleanup.remove_unused_private_members=false sp_cleanup.remove_unused_private_methods=true sp_cleanup.remove_unused_private_types=true sp_cleanup.sort_members=false sp_cleanup.sort_members_all=false sp_cleanup.use_blocks=false sp_cleanup.use_blocks_only_for_return_and_throw=false sp_cleanup.use_parentheses_in_expressions=false sp_cleanup.use_this_for_non_static_field_access=false sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true sp_cleanup.use_this_for_non_static_method_access=false sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true spelling_locale_initialized=true tabWidthPropagated=true useAnnotationsPrefPage=true useQuickDiffPrefPage=true