zoukankan      html  css  js  c++  java
  • eclipse配置 嵌入式-基于linux

    Eclipse可以安装在各种操作系统。这里是安装到Ubuntu 10.10上。有两种方法实现安装,一是采用Ubuntu的软件源;二是从官方下载后解压。

    1、  通过Ubuntu软件源安装

    $ sudo apt-get install build-essential

    $ sudo apt-get install eclipse

    $ sudo apt-get install eclipse-pde

    $ sudo apt-get install eclipse-jdt

    再通过eclipse的安装功能来安装CDT插件。步骤如下(一定要按照这个顺序):

    ·启动eclipse

    ·选择菜单helpàInsatll New Software

    ·在Work with的文本框中填入地址:

    http://download.eclipse.org/releases/galileo

    ·选择CollaborationàMylyn Bridge:C/C++ Development,安装。

    ·重启eclipse

    ·选择Programming LanguagesàEclipse C/C++ Development,选择你所想的。

    2、  从官方下载包按照

    Eclipse需要Java运行环境支持,因此,必须先安装JRE;然后解压eclipse包,直接运行程序即可

             ·Java Runtime Environment

             ·Eclipse IDE for C/C++ Developers

     

             下面讨论下eclipse的基本配置(根据网络整理)

    1C/C++环境配置:Window - Preferences - C/C++

    ·Appearance,选中Group method definitions in the Outline view

    ·Code Style,通过New来新建一个代码风格,命名为yesaidu_cs,且初始化为BSD/Allmain,然后按习惯修改一些细节;建议是采用默认的。

    ·Editor - Content Assist - Auto-Activation - Delay(ms),原值为500,改为100,则智能提示速度会明显加快。

    ·Indexer,清空Files to index up-front的内容,修改Cache limits的值,尽可能大,可以提高速度。

    2、修改智能提示快捷键:

    Window - Preferences - General - Keys,输入Content,找到Content Assist,在Binding中修改,例如修改为Shift+Space

    3、其他设置

    · Window - Preferences - General - Editors - Text Editors,选中Show line numbers,设置Print margin column110

    ·Window - Preferences - General - Workspace,取消Build automatically,选中Save automatically before build

         4、源代码管理

         Linux下开源代码管理软件现在大都改成git,这也是将来的趋势。要在eclipse上使用git,需要一个插件egit;官方网址为http://www.eclipse.org/egit,它基于jgit开发。

  • 相关阅读:
    Rancher 2.1平台搭建及使用
    回归博客园
    CGI与FastCGI
    [转]1小时内打造你自己的PHP MVC框架
    MySQL学习随笔--通过实例理解merge ,temptable算法的差异
    MySQL学习随笔--视图
    使用onenote写博客园的方法
    手动配置wamp环境(1)--apache安装与基本操作
    文档兼容性定义,使ie按指定的版本解析
    JavaScript线程
  • 原文地址:https://www.cnblogs.com/DeRozan/p/7750548.html
Copyright © 2011-2022 走看看