eclipse配置字体、背景颜色

豆沙绿:色调:85,饱和度:1 2 3,亮度:2 0 5 。

文档都不再是刺眼的白底黑字,而是非常柔和的豆沙绿色,这个色调是眼科专家配置的,长时间使用会很有效的缓解眼睛疲劳保护眼睛。 

方案一:

在workspace的目录中,找到 .metadata/.plugins/org.eclipse.core.runtime/.settings/ 目录,然后把两个文件给替换一下就可以了。
对了,替换完之后还得手动设置一次字体。我是用Consolas 14pts的 


org.eclipse.jdt.ui.prefs

[html]  view plain  copy
  1. <strong>#Wed Dec 23 14:31:26 CST 2009  
  2. secondaryIPColor=45,70,56  
  3. AbstractTextEditor.Color.Background=25,25,25  
  4. eclipse.preferences.version=1  
  5. spacesForTabs=true  
  6. writeOccurrenceIndicationColor=61,63,37  
  7. AbstractTextEditor.Color.Foreground.SystemDefault=false  
  8. AbstractTextEditor.Color.Foreground=128,255,0  
  9. AbstractTextEditor.Color.SelectionBackground=65,76,59  
  10. currentIPColor=45,70,56  
  11. overviewRuler_migration=migrated_3.1  
  12. lineNumberRuler=true  
  13. deletionIndicationColor=255,0,0  
  14. searchResultIndicationColor=51,51,79  
  15. currentLineColor=34,34,32  
  16. AbstractTextEditor.Color.SelectionForeground=255,255,255  
  17. printMarginColor=192,192,192  
  18. occurrenceIndicationColor=72,72,72  
  19. AbstractTextEditor.Color.SelectionBackground.SystemDefault=false  
  20. AbstractTextEditor.Color.Background.SystemDefault=false  
  21. lineNumberColor=0,128,192  
  22. AbstractTextEditor.Color.FindScope=25,25,25  
  23. AbstractTextEditor.Color.SelectionForeground.SystemDefault=false  
  24. </strong>  

org.eclipse.ui.editors.prefs

[html]  view plain  copy
  1. #Sun Mar 21 22:41:48 CST 2010  
  2. pf_coloring_argument=128,255,0  
  3. sp_cleanup.remove_private_constructors=true  
  4. semanticHighlighting.methodDeclarationName.enabled=true  
  5. sp_cleanup.sort_members_all=false  
  6. sp_cleanup.format_source_code=false  
  7. sp_cleanup.never_use_blocks=false  
  8. semanticHighlighting.enum.enabled=true  
  9. sp_cleanup.remove_unused_private_members=false  
  10. sp_cleanup.use_this_for_non_static_field_access=false  
  11. sp_cleanup.remove_unnecessary_casts=true  
  12. org.eclipse.jdt.ui.text.code_templates_migrated=true  
  13. pf_coloring_key=255,200,0  
  14. sp_cleanup.add_missing_nls_tags=false  
  15. semanticHighlighting.localVariableDeclaration.enabled=true  
  16. semanticHighlighting.interface.enabled=true  
  17. sp_cleanup.remove_trailing_whitespaces=false  
  18. content_assist_autoactivation_triggers_java=.abcdefghijklmnopqrstuvwxyz  
  19. semanticHighlighting.inheritedMethodInvocation.color=227,183,53  
  20. sp_cleanup.always_use_blocks=true  
  21. sp_cleanup.add_missing_methods=false  
  22. LexicalSortingAction.isChecked=true  
  23. semanticHighlighting.typeParameter.color=205,177,173  
  24. org.eclipse.jdt.ui.editor.tab.width=  
  25. sp_cleanup.always_use_this_for_non_static_field_access=false  
  26. sp_cleanup.never_use_parentheses_in_expressions=true  
  27. breadcrumb.org.eclipse.jdt.ui.JavaPerspective=true  
  28. sourceHoverBackgroundColor=255,255,225  
  29. java_keyword_return=236,108,30  
  30. org.eclipse.pde.ui.ExternalPluginLibrariesFilter1=true  
  31. spelling_user_dictionary_encoding=  
  32. spelling_locale_initialized=true  
  33. org.eclipse.jdt.ui.text.custom_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates/>  
  34. org.eclipse.jdt.ui.PackageExplorer_patternFilterId_.*=true  
  35. content_assist_proposals_background=255,255,255  
  36. semanticHighlighting.method.color=247,197,39  
  37. semanticHighlighting.interface.color=255,128,128  
  38. semanticHighlighting.method.enabled=true  
  39. sp_cleanup.make_variable_declarations_final=true  
  40. org.eclipse.jdt.ui.PackageExplorer_patternFilterId_RemoteSystemsTempFiles=true  
  41. sp_cleanup.on_save_use_additional_actions=false  
  42. sp_cleanup.remove_unnecessary_nls_tags=false  
  43. org.eclipse.jdt.ui.overrideannotation=true  
  44. org.eclipse.jdt.ui.text.templates_migrated=true  
  45. content_assist_parameters_foreground=230,230,230  
  46. spelling_ignore_non_letters=true  
  47. java_string=89,196,196  
  48. spelling_ignore_digits=true  
  49. semanticHighlighting.parameterVariable.enabled=true  
  50. org.eclipse.jdt.ui.javadoclocations.migrated=true  
  51. java_doc_tag=64,149,108  
  52. semanticHighlighting.staticMethodInvocation.color=255,255,255  
  53. org.eclipse.jdt.internal.ui.PackageExplorer.HideInnerClassFilesFilter=true  
  54. spelling_ignore_single_letters=true  
  55. CustomFiltersActionGroup.org.eclipse.jdt.ui.PackageExplorer.TAG_DUMMY_TO_TEST_EXISTENCE=storedViewPreferences  
  56. hoverModifierMasks=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;  
  57. sp_cleanup.convert_to_enhanced_for_loop=false  
  58. sp_cleanup.always_use_parentheses_in_expressions=false  
  59. sp_cleanup.use_parentheses_in_expressions=false  
  60. pf_coloring_assignment=255,255,255  
  61. sp_cleanup.remove_unused_private_methods=true  
  62. semanticHighlighting.class.color=255,128,192  
  63. sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true  
  64. sp_cleanup.always_use_this_for_non_static_method_access=false  
  65. tabWidthPropagated=true  
  66. java_comment_task_tag=64,128,128  
  67. sp_cleanup.qualify_static_method_accesses_with_declaring_class=false  
  68. org.eclipse.jdt.ui.PackageExplorer.PackageDeclarationFilter=true  
  69. semanticHighlighting.deprecatedMember.color=255,255,255  
  70. sp_cleanup.add_default_serial_version_id=true  
  71. org.eclipse.jdt.ui.PackageExplorer.ImportDeclarationFilter=true  
  72. sp_cleanup.make_private_fields_final=true  
  73. java_doc_link=0,128,255  
  74. org.eclipse.jdt.ui.PackageExplorer_patternFilterId_RemoteSystemsConnections=true  
  75. sp_cleanup.add_serial_version_id=false  
  76. sp_cleanup.add_missing_deprecated_annotations=true  
  77. spelling_ignore_urls=true  
  78. semanticHighlighting.annotation.color=192,192,192  
  79. pf_coloring_value=255,255,255  
  80. semanticHighlighting.typeArgument.enabled=true  
  81. semanticHighlighting.abstractMethodInvocation.color=241,196,54  
  82. sp_cleanup.add_missing_annotations=true  
  83. org.eclipse.jdt.ui.gettersetter.use.is=true  
  84. org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates/>  
  85. lastRecentlyUsedFilters=org.eclipse.jdt.internal.ui.PackageExplorer.EmptyInnerPackageFilter,  
  86. spelling_ignore_mixed=true  
  87. semanticHighlighting.staticField.color=255,255,255  
  88. org.eclipse.jface.textfont=1|Consolas|14.25|0|WINDOWS|1|-19|0|0|0|400|0|0|0|0|3|2|1|49|Consolas;  
  89. sp_cleanup.add_missing_override_annotations=true  
  90. sp_cleanup.remove_unused_private_types=true  
  91. sp_cleanup.organize_imports=true  
  92. semanticHighlighting.typeParameter.enabled=true  
  93. sp_cleanup.remove_unused_imports=false  
  94. semanticHighlighting.staticFinalField.color=128,255,0  
  95. semanticHighlighting.abstractMethodInvocation.enabled=true  
  96. sp_cleanup.add_generated_serial_version_id=false  
  97. semanticHighlighting.localVariable.color=70,140,179  
  98. sp_cleanup.qualify_static_member_accesses_with_declaring_class=false  
  99. sp_cleanup.use_this_for_non_static_method_access=false  
  100. content_assist_parameters_background=0,0,0  
  101. sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true  
  102. content_assist_disabled_computers=org.eclipse.jdt.ui.javaAllProposalCategory\u0000org.eclipse.jdt.ui.javaNoTypeProposalCategory\u0000org.eclipse.jdt.ui.textProposalCategory\u0000org.eclipse.jdt.ui.javaTypeProposalCategory\u0000  
  103. semanticHighlighting.inheritedMethodInvocation.enabled=true  
  104. sp_cleanup.make_local_variable_final=false  
  105. sp_cleanup.remove_trailing_whitespaces_all=true  
  106. java_multi_line_comment=0,128,64  
  107. semanticHighlighting.parameterVariable.color=64,128,0  
  108. sp_cleanup.format_source_code_changes_only=false  
  109. sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true  
  110. org.eclipse.jdt.ui.formatterprofiles.version=11  
  111. useAnnotationsPrefPage=true  
  112. sp_cleanup.remove_unused_private_fields=true  
  113. sp_cleanup.use_blocks=false  
  114. useQuickDiffPrefPage=true  
  115. fontPropagated=true  
  116. java_keyword=236,105,30  
  117. java_single_line_comment=0,128,64  
  118. semanticHighlighting.localVariable.enabled=true  
  119. org.eclipse.jdt.ui.PackageExplorer.EmptyLibraryContainerFilter=true  
  120. semanticHighlighting.enum.color=64,128,0  
  121. sp_cleanup.remove_trailing_whitespaces_ignore_empty=false  
  122. eclipse.preferences.version=1  
  123. sp_cleanup.sort_members=false  
  124. java_doc_keyword=0,128,0  
  125. semanticHighlighting.localVariableDeclaration.color=70,140,179  
  126. hoverModifiers=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;  
  127. java_bracket=255,255,255  
  128. semanticHighlighting.class.enabled=true  
  129. spelling_ignore_sentence=true  
  130. sp_cleanup.make_type_abstract_if_missing_method=false  
  131. sp_cleanup.qualify_static_field_accesses_with_declaring_class=false  
  132. spelling_ignore_upper=true  
  133. sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true  
  134. semanticHighlighting.staticFinalField.enabled=true  
  135. semanticHighlighting.methodDeclarationName.color=241,196,56  
  136. sp_cleanup.use_blocks_only_for_return_and_throw=false  
  137. java_operator=255,255,255  
  138. sp_cleanup.correct_indentation=false  
  139. java_default=255,255,255  
  140. sp_cleanup.make_parameters_final=false  
  141. content_assist_number_of_computers=18  
  142. sp_cleanup.remove_unused_local_variables=false  
  143. spelling_ignore_ampersand_in_properties=true  
  144. org.eclipse.jdt.ui.PackageExplorer.SyntheticMembersFilter=true  
  145. org.eclipse.jdt.ui.exception.name=e  
  146. content_assist_proposals_foreground=255,146,66  
  147. java_doc_default=64,149,108  
  148. semanticHighlighting.field.color=97,139,239  
  149. org.eclipse.jdt.internal.ui.PackageExplorer.EmptyInnerPackageFilter=true  
  150. proposalOrderMigrated=true  
  151. semanticHighlighting.typeArgument.color=217,176,172  
  152. spelling_ignore_java_strings=true  

这样不会干扰Eclipse的全局配置,比较灵活。

原文来自:雨枫技术教程网 http://www.fengfly.com
原文网址:http://www.fengfly.com/plus/view-173150-1.html

 

 方案二:

改变背景颜色(黑底背景的设置)
windows->Preferences->General->Editor->Text Editors
右边选择Appearance color options 
选Background color 选择背景颜色
选Current line highlight 来改变 当前选中行 的颜色

 

改变字体颜色
windows->Preferences->Java->Editor->Syntax Coloring
右边选择Java 然后可以自由选择颜色了

配色方案详细following: 
Annotations(注释): 107, 147, 186 
Deprecated members(不建议使用的成员): 0, 0, 0 
Fields(字段):128,255,0 绿色
KeyWord 'return'(关键字'return'): 255, 0, 0  红色
Keyword excluding 'return'(除了关键字以外的return): 255,80, 0  深深橘色
Local variable declarations(局部变量声明): 70,140,179  深蓝色
Method declarations(方法声明): 247,197,39  淡橘色
Method(方法): 241,196,54  深淡橘色
Operators and brackets(运算符与方括号): 255, 128, 0   深橘色
Others(其他): 126, 202, 0  淡绿色
Static fields(静态字段): 128,255,0 绿色
Static Method invocations(静态方法调用): 77, 166 255  
Strings(字符串):  89,196,196  墨蓝色
Type variables(类型变量): 222, 0, 25  红色

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
### 回答1: Keil5字体背景设置包是一种软件开发工具,用于配置Keil5的字体及其背景。Keil5 IDE是一款广泛应用于嵌入式系统开发的集成开发环境,该软件提供了诸多实用的工具,如编译器、调试器等,能够方便地进行嵌入式系统的编程、调试和测试。 Keil5字体背景设置包可以让用户自定义Keil5的字体样式和背景颜色,以满足用户对于工作环境的个性化需求。在Keil5开发环境中,用户可根据自己的喜好选择不同的字体样式和背景颜色,以增强开发工作的舒适度和高效性。 除此之外,Keil5字体背景设置包还提供了一些额外的功能,如可以实时预览设置的效果、可以根据需要进行保存和恢复设置等。这些功能均能提高用户的使用体验,并使得Keil5成为一款更为实用的嵌入式开发工具。 综上所述,Keil5字体背景设置包是一款非常实用的软件工具,它可以帮助用户提高开发效率、满足个性化需求,对于嵌入式开发人员来说是非常有价值的。 ### 回答2: Keil 5字体背景设置包是一款用于嵌入式软件开发的工具包,主要针对Keil 5集成开发环境(IDE)中的字体和背景进行定制。与Keil 5自带的字体和背景相比,这个工具包可以提供更多的选择和结合,使得开发者可以根据个人偏好和需求进行自定义。 该工具包提供了多种字体和背景样式,包括仿真字体、MonoSpace字体、矢量字体等,同时还可以自定义字体颜色背景颜色。开发者可以根据自己的需要选择合适的字体和背景样式,以便更好地观察和调整程序代码。 使用Keil 5字体背景设置包还可以提高代码编写的效率和舒适度。采用舒适的字体和背景样式可以减少眼睛疲劳和视觉压力,从而提高开发者的工作效率和效果。这也是该工具包受欢迎的主要原因之一。 总之,Keil 5字体背景设置包是一个极其实用的工具,可以帮助嵌入式软件开发者提高工作效率和舒适度。无论是从视觉效果还是开发效率上看,都是一款不可或缺的软件开发辅助工具。 ### 回答3: Keil uVision是一款功能强大的集成开发环境,用于编写和调试嵌入式系统的程序代码。在Keil uVision中,有许多可定制的选项和设置,其中包括字体和背景设置。 Keil5字体背景设置包是一款针对Keil uVision 5版本的插件,旨在改善Keil uVision的用户体验。该插件包括多种字体和背景选项,用户可以根据自己的喜好和需求进行选择和定制。 在Keil5字体背景设置包中,有多种字体可供选择,包括等宽和非等宽字体。用户可以根据自己的编程习惯和喜好选择最适合自己的字体。此外,该插件还提供了多种高对比度的背景颜色,这有助于提高代码的可读性和可视性。 除了基本的字体和背景选项外,Keil5字体背景设置包还提供了一些额外的功能,如代码折叠和注释折叠等。这些功能有助于隐藏不必要的代码和注释,从而提高代码的整洁性和可读性。 总之,Keil5字体背景设置包是一个优秀的插件,它可以显著改善Keil uVision的用户体验。通过选择最适合自己的字体和背景,以及使用额外的功能,用户可以更加轻松地编写和调试嵌入式系统的程序代码。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值