Windows上Eclipse IDE for C/C++
本文主要记录在window上Eclipse for C/C++ developer 的安装与使用。
一. Eclipse IDE for C/C++的安装
1. 下载及设置MinGW
下载MinGW:http://sourceforge.net/projects/mingw/files/
下载安装Installer, 安装Basics。
安装完成后,设置Path环境变量:在Path后面添加 install_path/MinGW/bin
2. 下载Java SE
下载安装JDK。
3. 下载及设置Eclipse
下载Eclipse IDE for C/C++: http://www.eclipse.org/downloads/
下载Eclipse IDE for C/C++ Developers
直接解压完成后:
Windows --> Preferences --> C/C++ --> New C/C++ Project Wizard
Project type: 选择Executable;
Toolchains:选择MinGW GCC;
按Make toolchain(s) preferred --> Apply --> OK
二. Eclipse 常用设置
1. 编译器字体: Window --> Preferences --> General --> Appearance --> Colors and Fonts --> Basic --> Text Font
2. Tab键用空格代替: Window --> Preferences --> General --> Editors --> Text Editors
勾上Insert spaces for tabs
3. 显示行号: Window --> Preferences --> General --> Editors --> Text Editors
勾上Show line numbers