结发受长生

止静

python/python web (bash shell) | 嵌入式

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开发。

posted on 2017-10-29 17:32  落羽生  阅读(298)  评论(0编辑  收藏  举报

导航

<>