zoukankan      html  css  js  c++  java
  • 【001:转载 eclipse中颜色的设置】

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

    参考配色方案:

    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 doublefloat intlong

    short signedunsigned 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 returnsizeof staticstruct

    switch typedefunion volatilewhile

    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声明的类型

     

  • 相关阅读:
    发光二极管
    续流二极管作用及工作原理
    python backtrace注意事项
    docker tips
    direct stdin and stdout
    python skill
    mysql comments
    python dict
    python list and tuple
    Python library
  • 原文地址:https://www.cnblogs.com/yexiaopeng/p/5585013.html
Copyright © 2011-2022 走看看