首页 > 系统服务 > 详细

Eclipse CDT 代码高亮配置

时间:2014-03-28 21:04:20      阅读:686      评论:0      收藏:0      [点我收藏+]

效果图如下:

bubuko.com,布布扣

 

配置生效方式:

找到CDT的workspace目录中如下文件

X:\workspace\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.cdt.ui.prefs

在其中填写如下内容:

bubuko.com,布布扣
 1 content_assist_autoactivation_delay=200
 2 content_assist_disabled_computers=org.eclipse.cdt.ui.parserProposalCategory\u0000org.eclipse.cdt.ui.textProposalCategory\u0000
 3 content_assist_proposals_timeout=5000
 4 
 5 semanticHighlighting.class.bold=true
 6 semanticHighlighting.class.color=0,0,255
 7 semanticHighlighting.enum.color=0,0,255
 8 semanticHighlighting.enum.enabled=true
 9 semanticHighlighting.enumerator.color=255,0,0
10 semanticHighlighting.function.color=0,0,255
11 semanticHighlighting.function.enabled=true
12 semanticHighlighting.functionDeclaration.color=128,0,255
13 semanticHighlighting.globalVariable.color=0,0,255
14 semanticHighlighting.globalVariable.enabled=true
15 semanticHighlighting.localVariable.color=128,0,0
16 semanticHighlighting.localVariable.enabled=true
17 semanticHighlighting.localVariableDeclaration.enabled=true
18 semanticHighlighting.macroDefinition.color=255,0,0
19 semanticHighlighting.macroDefinition.enabled=true
20 semanticHighlighting.macroSubstitution.color=255,0,0
21 semanticHighlighting.macroSubstitution.enabled=true
22 semanticHighlighting.method.bold=true
23 semanticHighlighting.method.color=128,0,255
24 semanticHighlighting.method.enabled=true
25 semanticHighlighting.methodDeclaration.color=128,0,255
26 semanticHighlighting.namespace.color=0,0,255
27 semanticHighlighting.namespace.enabled=true
28 semanticHighlighting.overloadedOperator.color=255,0,0
29 semanticHighlighting.overloadedOperator.enabled=true
30 semanticHighlighting.parameterVariable.color=0,0,174
31 semanticHighlighting.parameterVariable.enabled=true
32 semanticHighlighting.staticMethod.bold=true
33 semanticHighlighting.staticMethod.color=128,0,255
34 semanticHighlighting.typedef.bold=true
35 semanticHighlighting.typedef.color=128,64,0
36 sourceHoverBackgroundColor=255,255,225

 

bubuko.com,布布扣

---恢复内容结束---

效果图如下:

bubuko.com,布布扣

 

配置生效方式:

找到CDT的workspace目录中如下文件

X:\workspace\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.cdt.ui.prefs

在其中填写如下内容:

bubuko.com,布布扣
 1 content_assist_autoactivation_delay=200
 2 content_assist_disabled_computers=org.eclipse.cdt.ui.parserProposalCategory\u0000org.eclipse.cdt.ui.textProposalCategory\u0000
 3 content_assist_proposals_timeout=5000
 4 
 5 semanticHighlighting.class.bold=true
 6 semanticHighlighting.class.color=0,0,255
 7 semanticHighlighting.enum.color=0,0,255
 8 semanticHighlighting.enum.enabled=true
 9 semanticHighlighting.enumerator.color=255,0,0
10 semanticHighlighting.function.color=0,0,255
11 semanticHighlighting.function.enabled=true
12 semanticHighlighting.functionDeclaration.color=128,0,255
13 semanticHighlighting.globalVariable.color=0,0,255
14 semanticHighlighting.globalVariable.enabled=true
15 semanticHighlighting.localVariable.color=128,0,0
16 semanticHighlighting.localVariable.enabled=true
17 semanticHighlighting.localVariableDeclaration.enabled=true
18 semanticHighlighting.macroDefinition.color=255,0,0
19 semanticHighlighting.macroDefinition.enabled=true
20 semanticHighlighting.macroSubstitution.color=255,0,0
21 semanticHighlighting.macroSubstitution.enabled=true
22 semanticHighlighting.method.bold=true
23 semanticHighlighting.method.color=128,0,255
24 semanticHighlighting.method.enabled=true
25 semanticHighlighting.methodDeclaration.color=128,0,255
26 semanticHighlighting.namespace.color=0,0,255
27 semanticHighlighting.namespace.enabled=true
28 semanticHighlighting.overloadedOperator.color=255,0,0
29 semanticHighlighting.overloadedOperator.enabled=true
30 semanticHighlighting.parameterVariable.color=0,0,174
31 semanticHighlighting.parameterVariable.enabled=true
32 semanticHighlighting.staticMethod.bold=true
33 semanticHighlighting.staticMethod.color=128,0,255
34 semanticHighlighting.typedef.bold=true
35 semanticHighlighting.typedef.color=128,64,0
36 sourceHoverBackgroundColor=255,255,225

 

bubuko.com,布布扣

Eclipse CDT 代码高亮配置,布布扣,bubuko.com

Eclipse CDT 代码高亮配置

原文:http://www.cnblogs.com/morya/p/3629686.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!