= IDE Installation and Configuration - Ubuntu = = __Eclipse__ = The following installation instructions are for Eclipse CDT (C/C++ Development Tooling).[[BR]] Eclipse CDT allows for syntax highlighting, auto-completion, visual debugging, easy source navigation as well as other useful tools.[[BR]] Eclipse CDT can either be added to an existing Eclipse installation or installed from source. This tutorial will focus on the latter. '''__Download and Install Eclipse CDT Indigo for Developers:__'''[[BR]] ''Be sure to choose the correct version (32 or 64 bit from the right menu)''[[BR]] [http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers-includes-incubating-components/indigosr1][[BR]] Move the tarball to the installation directory of your choice for installation. {{{ tar -zxvf yourfile.tar.gz rm -rf yourfile.tar.gz }}} You should now be able to run eclipse. {{{ cd eclipse ./eclipse }}} In order to start eclipse from the command line, your directory of choice must be in the unix PATH environment variable. {{{ echo $PATH #If the path is not present you can add it permanently with the following command. echo 'export PATH="$PATH:/path_to/directory_of_choice/eclipse"' >> ~/.bashrc && . ~/.bashrc #You should now be able to start eclipse from the command line eclipse }}} '''__Creating Eclipse project files:__'''[[BR]] In the directory of the project file that you would like to export simply: {{{ cmake . -G"Eclipse CDT4 - Unix Makefiles" }}} '''__Importing generated Eclipse project files:__'''[[BR]] In Eclipse: [[BR]] ''File --> Import --> General --> Existing Projects into Workspace --> Next --> Browse''[[BR]] Browse to your package's root directory and hit OK [[BR]] Finish the import by selecting the finish button.[[BR]] Your project should now be imported into Eclipse and can be viewed in the Project Explorer on the left side of the IDE. '''__Other useful tools and plugins__'''[[BR]] ''' Barrett Technology Auto Formatting ''' [[BR]] Download the BTech Automatic Formatting Template {{{ #Navigate to a directory of choice wget http://web.barrett.com/svn/libbarrett/trunk/BTech_Format.xml }}} In Eclipse:[[BR]] ''Window-->Preferences-->C/C++-->Code Style-->Import'' Browse to your BTech_Format.xml and hit OK [[BR]] Hit apply and OK.[[BR]] Your Eclipse projects should now follow the Barrett Technology conventions. To apply the formatting to an existing file:[[BR]] ''Open file --> Source --> Format'' '''Adding Python IDE for Eclipse - PyDev'''[[BR]] PyDev is a great IDE for Python development. PyDev also has much of the advantages of CDT; auto-completion, synatax highlighting, auto formatting, etc. ''Note: the following instructions are for Eclipse Indigo'' ''Help --> Eclipse Marketplace''[[BR]] Search for: PyDev or python. The first result will be PyDev.[[BR]] Install PyDev. This may require restarting Eclipse. You should now have all of the aforementioned python tools. '''Installing Eclipse Color Themes'''[[BR]] Eclipse color theme plugin allows for automatic color formatting of the IDE. ''Note: the following instructions are for Eclipse Indigo'' ''Help --> Eclipse Marketplace''[[BR]] Search for: eclipse color theme. Install Eclipse Color Theme by Felix Dahlke and Roger Dudler. After installation you can apply a color theme by: ''Window-->Preferences-->General-->Appereance-->Color Theme'' - choose the theme of your choice and apply.