现在的位置: 首页 > 综合 > 正文

eclipse配置字体、背景颜色

2013年05月30日 ⁄ 综合 ⁄ 共 3695字 ⁄ 字号 评论关闭

豆沙绿:色调: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  

抱歉!评论已关闭.