Eclipse C/C++環境配置
睿豐德科技 專注RFID識別技術和條碼識別技術與管理軟件的集成項目。質量追溯系統、MES系統、金蝶與條碼系統對接、用友與條碼系統對接
一、C/C++環境配置:
Window - Preferences - C/C++
1. Editor - Content Assist - Auto-Activation - Delay(ms),原值為500,改為100,則智能提示速度將非常快!
2. Enviroment,添加三個環境變量:
INCLUDE=${system:ECLIPSE_HOME}/include
LIB=${system:ECLIPSE_HOME}/lib
PATH=${system:ECLIPSE_HOME}/bin;${system:ECLIPSE_HOME}/tool/svn
3. Indexer,清空Files to index up-front的內容,修改Cache limits的值,盡可能大,可以提高速度!
4. Net CDT project wizard - Makefile Project
Binary Parsers,選中PE Windows Parser
Error Parsers,只選中CDT Visual C Error Parser
Discovery Options,取消Automate discovery of paths and symbols,因為VC不支持。
Builder Settings,取消Use default build command選項,將Build command的值從make改為nmake(注:也可不改,使用make)
5. Code Style,通過New來新建一個代碼風格,命名為qpsoft,且初始化為BSD/Allmain,然后按習慣修改一些細節。
6. Editor - Templates,選中Use code formatter,這樣快速完成的代碼是自己自己設計好的風格。
7. Appearance,選中Group method definitions in the Outline view
二、讓工程支持智能提示
由于VC編譯器并沒有將頭文件路徑編譯進可執行文件,所以無法知道相關頭文件的路徑,需要手動設置,才能使用智能提示功能。方法:Project - Properties - C/C++ General - Paths and Symbols - Includes,Add,從Variables中選擇INCLUDE,選中Add to all configuration、Add to all languages。
三、修改智能提示的快捷鍵
Window - Preferences - General - Keys,輸入Content,找到Content Assist,在Binding中修改為Shift+Space,要順手的多。
四、其他設置
1. Window - Preferences - General - Editors - Text Editors,選中Show line numbers,設置Print margin column為110
2. Window - Preferences - General - Workspace,取消Build automatically,選中Save automatically before buildRFID管理系統集成商 RFID中間件 條碼系統中間層 物聯網軟件集成
1. Editor - Content Assist - Auto-Activation - Delay(ms),原值為500,改為100,則智能提示速度將非常快!
2. Enviroment,添加三個環境變量:
INCLUDE=${system:ECLIPSE_HOME}/include
LIB=${system:ECLIPSE_HOME}/lib
PATH=${system:ECLIPSE_HOME}/bin;${system:ECLIPSE_HOME}/tool/svn
3. Indexer,清空Files to index up-front的內容,修改Cache limits的值,盡可能大,可以提高速度!
4. Net CDT project wizard - Makefile Project
Binary Parsers,選中PE Windows Parser
Error Parsers,只選中CDT Visual C Error Parser
Discovery Options,取消Automate discovery of paths and symbols,因為VC不支持。
Builder Settings,取消Use default build command選項,將Build command的值從make改為nmake(注:也可不改,使用make)
5. Code Style,通過New來新建一個代碼風格,命名為qpsoft,且初始化為BSD/Allmain,然后按習慣修改一些細節。
6. Editor - Templates,選中Use code formatter,這樣快速完成的代碼是自己自己設計好的風格。
7. Appearance,選中Group method definitions in the Outline view
二、讓工程支持智能提示
由于VC編譯器并沒有將頭文件路徑編譯進可執行文件,所以無法知道相關頭文件的路徑,需要手動設置,才能使用智能提示功能。方法:Project - Properties - C/C++ General - Paths and Symbols - Includes,Add,從Variables中選擇INCLUDE,選中Add to all configuration、Add to all languages。
三、修改智能提示的快捷鍵
Window - Preferences - General - Keys,輸入Content,找到Content Assist,在Binding中修改為Shift+Space,要順手的多。
四、其他設置
1. Window - Preferences - General - Editors - Text Editors,選中Show line numbers,設置Print margin column為110
2. Window - Preferences - General - Workspace,取消Build automatically,選中Save automatically before buildRFID管理系統集成商 RFID中間件 條碼系統中間層 物聯網軟件集成