-
设置工作空间编码
编码格式一般使用国际编码 UTF-8
Window → Preferences → General → Workspace,右侧的 Text file encoding 选择 Other → UTF-8
-
设置背景色为豆沙色
Window → Preferences → General → Editors → Text Editors,右侧 Appearance color options → Bakcground color,自定义颜色:" 色调:85,饱和度:123,亮度:205"
-
设置字体和字体大小
Window → Preferences → General → Appearance → Colors and Fonts,右侧 Basic → Text Font
-
设置显示行号
Window → Preferences → General → Editors → Text Editors,右侧勾选 Show line numbers
-
选中变量后以指定颜色高亮显示
高亮显示:Window → Preferences → C/C++ → Editor → Mark Occurrences,将右侧的选项都勾选上即可。
更改颜色:Window → Preferences,在左上角输入 Annotations,选中右边的 C/C++ Occurences 修改颜色。
-
解决 Eclipse 点击函数或变量无法跳转的问题
Eclipse 首次编辑大于5000行(默认)代码以上的文件时,为了提高性能,进入Scalabilitys模式,将关闭代码定义跳转功能以提高性能。
解决办法很简单,进入 Windows -> Preferences -> C/C++ ->Editor -> Scalability,在右边的
Enable scalability mode when thr number of lines in the file is more than:
栏后填上20000或50000,具体根据自己的代码来调整就好。最后,重新启动Eclipse,就大功告成了。
-
设置C/C++注释模板
Windows -> Preferences -> C/C++ -> Code Style -> Code Templates -> Comments
-
设置C/C++的代码、注释等颜色
Windows -> Preferences -> C/C++ ->Editor -> Syntax Coloring
该菜单下可设置函数、结构体、宏定义等颜色。
Eclipse常用配置
最新推荐文章于 2024-06-26 11:19:57 发布