eclipse中颜色的设置

news/2025/2/22 15:53:11/

转自于:http://www.cnblogs.com/arci/archive/2011/01/23/1942646.html

Eclipse颜色设置

参考配色方案:

http://www.cs.cmu.edu/~maverick/VimColorSchemeTest/

http://code.google.com/p/gnuemacscolorthemetest/

1、Eclipse颜色设置在菜单Windows -> Preferences,如图1所示。

image

图1、Preferences

2、General -> Appearance -> Colors and Font,如图2所示。

image

图2、Colors and Font

可在此进行字体设置。

3、General -> Editors -> Text Editors,如图3所示。

image

图3、Text Editors

具体描述如下:
Line number foreground行号前景色设置
Current line highlight当前行高亮颜色设置
Print margin打印页边距颜色设置
Find scope查找作用域颜色设置
Selection foreground color选择的内容的前景色设置
Selection background color选择的内容的背景色设置
Background color背景色设置
Foreground color前景色设置

Hyperlink超链接颜色设置

4、General -> Editors -> Text Editors -> Annotations,如图4所示。

image

图4、Annotations

C/C++ Occurrences C/C++光标处变量高亮颜色设置

5、C/C++ -> Editor,如图5所示。

image

图5、Editor

具体描述如下:
Matching brackets highlight匹配括号高亮颜色设置
Inactive code highlight不活动代码高亮(例如#if条件不成了的语句)
Completion proposal background自动补全窗口的背景色设置
Completion proposal foreground自动补全窗口的前景色设置

Parameter hint background
Parameter hint foreground
Source hover background Source悬停窗口背景色设置

6、C/C++->Editor->Syntax Coloring,如图6所示。

image

图6、Syntax Coloring

具体描述如下:
C/C++
-----Editor编辑器
-----------Syntax Coloring语法着色
--------------------------Enable semantic highlighting使能语法高亮
--------------------------Element元素
---------------------------------Code代码
-------------------------------------Braces括号
-------------------------------------Built-in types内置类型名
-------------------------------------Classes, Structs, Unions类, 结构体, 联合体
-------------------------------------Enumerators枚举元素
-------------------------------------Enums枚举类型
-------------------------------------External SDK calls外部软件开发工具包调用(例如:stdio.h中的printf)
-------------------------------------Fields位域bit-fields
-------------------------------------Function declarations函数名声明(定义)
-------------------------------------Functions函数名(引用)
-------------------------------------Global variables全局变量
-------------------------------------Keywords关键字(不包括内置类型名)
-------------------------------------Labels标签
-------------------------------------Local variable declarations局部变量定义
-------------------------------------Local variable references局部变量引用
-------------------------------------Macro definitions宏定义
-------------------------------------Macro references宏引用
-------------------------------------Method declarations类中的方法声明
-------------------------------------Methods方法引用
-------------------------------------Namespaces
-------------------------------------Numbers数值
-------------------------------------Operators操作符
-------------------------------------Others其他----不知道为什么结构体的名称竟然属于其他
-------------------------------------Overloaded Operators重载操作符
-------------------------------------Parameter variables函数形参变量
-------------------------------------Problems
-------------------------------------Static fields 静态位域(Static bit-fields)
-------------------------------------Static method invocations
-------------------------------------Strings字符和字符串
-------------------------------------Template parameters
-------------------------------------Typedefs使用typedef声明的类型
---------------------------------Assembly汇编语言
-----------------------------------------Directives指令
-----------------------------------------Labels标签
---------------------------------Comments注释
-----------------------------------------Multi-line comment多行注释
-----------------------------------------Single-line comment单行注释
-----------------------------------------Task Tags任务标记
---------------------------------Preprocessor预处理
---------------------------------------------Directives指令(#号开头的预处理指令)
---------------------------------------------Headers头文件
---------------------------------------------Others其他
---------------------------------Doxygen
----------------------------------------Doxygen Multi-line Comment
----------------------------------------Doxygen Single-line Comment
----------------------------------------Doxygen Tag

1.Braces括号

() [] {}

2.Built-in types内置类型名

char double float int long

short signed unsigned void _Bool

_Complex _Imaginary

3.Classes, Structs, Unions类, 结构体, 联合体(C++)

4.Enumerators枚举元素

enum TEST {ZERO, ONE, TWO} test;

例子中的ZERO, ONE, TWO为枚举元素

5.Enums枚举类型

enum TEST {ZERO, ONE, TWO} test;

例子中的TEST为枚举类型

6.External SDK calls外部软件开发工具包调用

例如:调用stdio.h中的printf函数

7.Fields域

指在struct或union中定义的成员变量

8.Function declarations函数名声明和定义

9.Functions函数名调用

10.Global variables全局变量

11.Keywords关键字(不包括内置类型名)

auto break case const continue

default do else enum extern

for goto if inline register

restrict return sizeof static struct

switch typedef union volatile while

12.Labels标签

13.Local variable declarations局部变量定义

14.Local variable references局部变量引用

15.Macro definitions宏定义

16.Macro references宏引用

17.Method declarations类的方法声明(C++)

close

18.Methods类的方法引用(C++)

19.Namespaces(C++)

20.Numbers数值

21.Operators操作符

22.Others其他(不知道为什么结构体的名称竟然属于其他)

23.Overloaded Operators重载操作符(C++)

24.Parameter variables函数形参变量

25.Problems(不清楚是什么用)

26.Static fields 静态域

指在struct或union中用static定义的成员变量

27.Static method invocations(C++)

28.Strings字符和字符串

29.Template parameters(C++)

30.Typedefs使用typedef声明的类型



http://www.ppmy.cn/news/663650.html

相关文章

iOS 导航栏颜色设置

//设置返回按钮颜色 self.navigationController.navigationBar.tintColor [UIColor whiteColor]; //设置导航条背景颜色 self.navigationController.navigationBar.barTintColor ThemeColor; //设置导航栏标题背景颜色及字体 [self.navigationController.navigationBar setTi…

IOS 7 改变状态栏颜色

状态栏的字体为黑色:UIStatusBarStyleDefault 状态栏的字体为白色:UIStatusBarStyleLightContent 一、在info.plist中,将View controller-based status bar appearance设为NO 状态栏字体的颜色只由下面的属性设定,默认为白色&…

iOS中修改状态栏颜色

修改启动页状态栏颜色 默认显示黑色,选中TARGETS->General->Deployment Info->Status Bar Style,选择Light Content则状态栏显示白色。 修改其他页面状态栏颜色 重写- (UIStatusBarStyle)preferredStatusBarStyle返回所需的状态栏颜色&…

eclipse修改操作界面颜色

eclipse操作界面默认颜色为白色。对于我们长期使用电脑编程的人来说,白色很刺激我们的眼睛,所以我经常会改变workspace的背景色,使眼睛舒服一些。 设置方法如下: 1、打开window->Preference,弹出Preference面板 2、展开G…

python上怎么改字体颜色_在python2.7中更改字体颜色

我创造了一个帕斯卡三角形。一切都是我想要的。我现在想改变三角形中特定数字的颜色。我想要对角线的颜色不同,即:计数的数字是蓝色的,三角形的数字是橙色的。有没有一种方法可以改变不同行中数字的颜色,甚至设置一个颜色序列(一行…

[iOS]iOS7状态栏颜色更改

iOS7状态栏颜色更改 1 在Info.plist配置文件中,增加键:UIViewControllerBasedStatusBarAppearance,并设置为NO(字体白色,设置为YES则为黑色); 2 在需要改变状态栏颜色的ViewController中在ViewDidLoad方法…

iOS7修改状态栏文字颜色

iOS7默认状态栏文字颜色为黑色 修改为白色的方法: 1在Info.plist中设置UIViewControllerBasedStatusBarAppearance 为NO 2 在需要改变状态栏颜色的ViewController中在ViewDidLoad方法中增加: UIApplication sharedApplication] setStatusBarStyle:UIStat…

iOS 7 在启动期间改变状态栏颜色

如果觉得在iOS 7启动期间状态栏黑色不合你意,以下方法可改变Status bar style成白色 在工程的plist添加 Status bar style,改变style值 默认是Gray style,选择后面两个任意一个都可以 改变之后启动图: 更多方法请参考: 1.http://stackoverfl…