设置S32 Design Studio(S32DS)开发环境的字体和颜色
修改S32 Design Studio开发环境的颜色和字体等配置。
点击菜单:Window –> Preference
弹出对话框,在对话框中修改配置。
1. 设置界面主题和背景颜色,代码字体、大小和颜色
1.1 设置主题
在左侧树状框中点击:
General –> Appearances
在右侧theme 选项中选择主题
1.2 设置界面背景颜色
部分版本有效。
在左侧树状框中点击:
General –> Editors –> Text Editors
在 Appearance color options 框中,
点击 Background color,点击右侧Color框,选择颜色。
1.3 设置代码的字体和大小
在左侧树状框中点击:
General –> Appearances –>
Colors and Fonts
在右侧Basic选项,
双击 Text Font,设置代码的字体和大小。
双击 Text Editor Block Section Font,设置使用块状选择代码后的字体和大小。
1.4 设置代码的颜色
C/C++ ->Editor -> Syntax Coloring
在右侧 Element 框中,点击具体项,点击右侧Color框,选择颜色。
2. Console界面字体和颜色
在左侧树状框中点击:
C/C++ –> Build –> Console
右侧设置字体及背景颜色。
3. Search界面搜索匹配文字的背景色
在左侧树状框中点击:
General –> Appearances –>
Colors and Fonts
3.1 File Search搜索,匹配文字的背景色
在右侧Basic选项,双击 Match highlight background color,设置通过“File Search”搜索,匹配文字的背景色
3.2 C/C++搜索,匹配文字的背景色
部分版本有效。
在右侧C/C++选项,
双击 Write match background highlight,设置被赋值或修改匹配文字的背景色;
双击 Match background highlight,设置其他匹配文字的背景色。
4. 行号
在左侧树状框中点击:
General –> Editors –> Text Editors
4.1 显示行号
右侧勾选 Show line numbers
4.2 设置行号文字颜色
在 Appearance color options 框中,点击Line number foreground,点击Color框,选择颜色。
5. 调试汇编代码背景颜色
在左侧树状框中点击:
General –> Editors –> Text Editors
–>Annotations
在右侧 Annotations types 选项,点击:Debug Current Instruction Pointer
点击Color框,选择颜色。
6. Makefile的字体颜色
在左侧树状框中点击:
C/C++ –> Build –> Makefile Editor
在右侧Foreground框:
6.1 设置宏定义的颜色
点击 Macro definition,点击右侧Color框,选择颜色。
6.2 设置宏引用的颜色
点击 Macro reference,点击右侧Color框,选择颜色。
6.3 设置关键字颜色
点击 Keyword,点击右侧Color框,选择颜色。
6.4 设置注释颜色
点击 Comment,点击右侧Color框,选择颜色。
6.5 设置其他颜色
点击 Others,点击右侧Color框,选择颜色。
7. 选中代码的文字和背景颜色
鼠标点击或搜索选中代码中变量或函数,同一页面中同名变量或函数的背景色都会改变。
7.1 设置选中变量或函数的文字和背景颜色
在左侧树状框中点击:
General –> Editors –> Text Editors
在 Appearance color options 框中,
1)设置选中文字的颜色
点击 Selection foreground color,点击右侧Color框,选择颜色。
2)设置选中文字的背景颜色
点击 Selection background color,点击右侧Color框,选择颜色。
3)设置选中行的背景颜色
点击 Current line highlight,点击右侧Color框,选择颜色。
7.2 设置选中项同名变量或函数的背景色
在左侧树状框中点击:
General –> Editors –> Text Editors
–> Annotations
1)所有被赋值或修改同名变量的背景色
在右侧Annotations types框,
点击 c/c++ Write Occurrences,点击Color框,选择颜色。
2)其他所有同名变量或函数的背景色
在右侧Annotations types框,
点击 c/c++ Occurrences,点击Color框,选择颜色。
8. 设置标记颜色
在左侧树状框中点击:
General –> Editors –> Text Editors
–> Annotations
8.1 设置断点相关颜色
如果断点对应代码处,显示了标记线,可以修改线条颜色。
在右侧 Annotations types 框,
点击 Breakpoints,点击右侧Color框,选择颜色。
8.2 设置索引标记颜色
在输入代码有语法错误等情况下,会在代码下方画出波浪线。可以修改波浪线颜色。
在右侧 Annotations types 框,
点击 C/C++ Indexer Markers,点击右侧Color框,选择颜色。
9. 设置提示框文字和背景颜色
有时写代码会弹出提示框,可以根据提示选择生成代码。
在左侧树状框中点击:
C/C++ –> Editor
在右侧Appearance color options框中,
9.1 设置提示框背景颜色
点击 Completion proposal background,点击右侧Color框,选择颜色。
9.2 设置提示框文字颜色
点击 Completion proposal foreground,点击右侧Color框,选择颜色。
10. 设置注释字体和背景颜色
在左侧树状框中点击:
10.1 设置注释文字颜色
C/C++ ->Editor -> Syntax Coloring
在右侧 Element 框中,
1)/* */ 注释颜色
点击 Comments -> Multi-line comment,点击Color框,选择颜色。
2)// 注释颜色
点击 Comments -> Single-line comment,点击Color框,选择颜色。
10.2 设置注释背景颜色
C/C++ -> Editor
在Appearance color options框中点击Inactive code highlight,设置使用#if预处理注释掉代码的背景色。
11. 设置链接文件文字颜色
PowerPC版本有效。
在左侧树状框中点击:Coloring Editor -> Colors,根据具体项,点击选择颜色。反应慢一拍。重启后生效。
12. 配置文件
配置信息保存在工程目录(workspace)文件夹中,路径是:
.metadata /.plugins / org.eclipse.core.runtime /.settings
保存为prefs文件。
更多推荐
所有评论(0)