备份自己原有的配置,file->export->preferences->export all 。
创建自己的配置文件。将第1步备份的文件内容复制到一个新的文件中;搜索文件内容删除文件中类似以下的配置:
- /instance/org.eclipse.jdt.ui/semantichighlighting.staticfield.enabled=false/instance/org.eclipse.ui.editors/abstracttexteditor.color.background.systemdefault=false/instance/org.eclipse.ui.editors/currentlinecolor=45,45,68
在文件中新增以下主题配置:
- file_export_version=3.0/instance/org.eclipse.jdt.ui/semantichighlighting.parametervariable.color=64,128,0
- /instance/org.eclipse.jdt.ui/java_comment_task_tag=128,0,128
- /instance/org.eclipse.jdt.ui/semantichighlighting.parametervariable.enabled=true/instance/org.eclipse.jdt.ui/java_operator=255,255,255
- /instance/org.eclipse.jdt.ui/semantichighlighting.localvariabledeclaration.color=53,122,146
- /instance/org.eclipse.jdt.ui/java_string=71,116,136
- /instance/org.eclipse.jdt.ui/pf_coloring_assignment=255,255,255
- /instance/org.eclipse.jdt.ui/semantichighlighting.inheritedmethodinvocation.enabled=true/instance/org.eclipse.jdt.ui/pf_coloring_value=255,255,255
- /instance/org.eclipse.jdt.ui/semantichighlighting.class.color=156,248,40
- /instance/org.eclipse.jdt.ui/semantichighlighting.typeparameter.color=205,177,173
- /instance/org.eclipse.jdt.ui/pf_coloring_argument=128,255,0
- /instance/org.eclipse.jdt.ui/semantichighlighting.interface.color=135,240,37
- /instance/org.eclipse.ui.editors/currentlinecolor=34,34,32
- /instance/org.eclipse.jdt.ui/java_doc_link=129,69,162
- /instance/org.eclipse.jdt.ui/java_keyword_return=236,108,30
- /instance/org.eclipse.ui.editors/printmargincolor=76,76,76
- /instance/org.eclipse.jdt.ui/semantichighlighting.methoddeclarationname.enabled=true/instance/org.eclipse.jdt.ui/java_single_line_comment=129,70,162
- /instance/org.eclipse.jdt.ui/semantichighlighting.localvariable.color=60,117,141
- /instance/org.eclipse.jdt.ui/semantichighlighting.abstractmethodinvocation.enabled=true/instance/org.eclipse.jdt.ui/java_default=255,255,255
- /instance/org.eclipse.jdt.ui/java_doc_keyword=128,0,128
- /instance/org.eclipse.jdt.ui/semantichighlighting.class.enabled=true/instance/org.eclipse.jdt.ui/semantichighlighting.enum.enabled=true/instance/org.eclipse.ui.editors/abstracttexteditor.color.selectionbackground=65,76,59
- /instance/org.eclipse.jdt.ui/semantichighlighting.abstractmethodinvocation.color=241,196,54/instance/org.eclipse.ui.editors/abstracttexteditor.color.background=25,25,25
- /instance/org.eclipse.jdt.ui/semantichighlighting.field.color=53,122,143
- /instance/org.eclipse.jdt.ui/java_multi_line_comment=140,63,200
- /instance/org.eclipse.jdt.ui/java_bracket=255,255,255
- /instance/org.eclipse.jdt.ui/semantichighlighting.staticmethodinvocation.color=255,255,255
- /instance/org.eclipse.jdt.ui/semantichighlighting.inheritedmethodinvocation.color=227,183,53
- /instance/org.eclipse.ui.editors/abstracttexteditor.color.findscope=25,25,25
- /instance/org.eclipse.jdt.ui/semantichighlighting.deprecatedmember.color=255,255,255
- /instance/org.eclipse.jdt.ui/java_doc_tag=128,0,128
- /instance/org.eclipse.ui.editors/abstracttexteditor.color.foreground=128,255,0
- /instance/org.eclipse.jdt.ui/semantichighlighting.interface.enabled=true/instance/org.eclipse.jdt.ui/semantichighlighting.typeargument.enabled=true/instance/org.eclipse.jdt.ui/semantichighlighting.method.enabled=true/instance/org.eclipse.ui.editors/deletionindicationcolor=255,0,0
- /instance/org.eclipse.jdt.ui/content_assist_proposals_foreground=255,146,66
- /instance/org.eclipse.ui.editors/abstracttexteditor.color.selectionbackground.systemdefault=false/instance/org.eclipse.ant.ui/org.eclipse.ant.ui.tagscolor=255,255,255
- /instance/org.eclipse.jdt.ui/semantichighlighting.staticfinalfield.color=128,255,0
- /instance/org.eclipse.jdt.ui/semantichighlighting.typeargument.color=217,176,172
- /instance/org.eclipse.jdt.ui/content_assist_parameters_background=0,0,0
- /instance/org.eclipse.jdt.ui/semantichighlighting.staticfinalfield.enabled=true/instance/org.eclipse.jdt.ui/java_doc_default=140,63,200
- /instance/org.eclipse.ui.editors/abstracttexteditor.color.background.systemdefault=false/instance/org.eclipse.jdt.ui/semantichighlighting.typeparameter.enabled=true/instance/org.eclipse.jdt.ui/pf_coloring_key=255,200,0
- /instance/org.eclipse.jdt.ui/semantichighlighting.localvariabledeclaration.enabled=true/instance/org.eclipse.jdt.ui/semantichighlighting.staticfield.color=255,255,255
- /instance/org.eclipse.jdt.ui/java_keyword=236,105,30/instance/org.eclipse.jdt.ui/semantichighlighting.enum.color=64,128,0
- /instance/org.eclipse.ui.editors/abstracttexteditor.color.foreground.systemdefault=false/instance/org.eclipse.jdt.ui/content_assist_parameters_foreground=230,230,230
- /instance/org.eclipse.ant.ui/org.eclipse.ant.ui.textcolor=255,255,255
- /instance/org.eclipse.jdt.ui/semantichighlighting.method.color=247,197,39
- /instance/org.eclipse.jdt.ui/semantichighlighting.methoddeclarationname.color=241,196,56
将以上文件保存为eclipse_vibrant_ink.epf(以.epf为后缀即可)
导入主题配置文件,file->import->preferences->import all。
以上简单的基本操作就可以完成对eclipse主题的设置,经过我的测试上面的方法在eclipse3.4-3.6都可以成功配置。
【编辑推荐】