Eclipse常用配置

  1. 设置工作空间编码

    编码格式一般使用国际编码 UTF-8

    Window → Preferences → General → Workspace,右侧的 Text file encoding 选择 Other → UTF-8

  2. 设置背景色为豆沙色

    Window → Preferences → General → Editors → Text Editors,右侧 Appearance color options → Bakcground color,自定义颜色:" 色调:85,饱和度:123,亮度:205"

  3. 设置字体和字体大小

    Window → Preferences → General → Appearance → Colors and Fonts,右侧 Basic → Text Font

  4. 设置显示行号

    Window → Preferences → General → Editors → Text Editors,右侧勾选 Show line numbers

  5. 选中变量后以指定颜色高亮显示

    高亮显示:Window → Preferences → C/C++ → Editor → Mark Occurrences,将右侧的选项都勾选上即可。

    更改颜色:Window → Preferences,在左上角输入 Annotations,选中右边的 C/C++ Occurences 修改颜色。

  6. 解决 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,就大功告成了。

  7. 设置C/C++注释模板

    Windows -> Preferences -> C/C++ -> Code Style -> Code Templates -> Comments

  8. 设置C/C++的代码、注释等颜色

    Windows -> Preferences -> C/C++ ->Editor -> Syntax Coloring

    该菜单下可设置函数、结构体、宏定义等颜色。

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

半砖

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值