Installing the CDT

The CDT stands for "C/C++ Development Tools." The CDT is an Eclipse plugin that allows you work with C and C++ projects. The CDT homepage is http://www.eclipse.org/cdt/.

  1. Inside Eclipse, go to Help -> Software Updates -> Find and Install.
  2. Select Search for new features to install and click Next.
  3. Check Europa Discovery Site and click Finish.
  4. You will be prompted to select a mirror more than once during the installation process. Indiana University tends to be fast. Click OK.
  5. Expand "Europa Discover Site" by clicking the + sign and check C and C++ Development. Click Next.
  6. Select I accept the terms in the license agreement and click Next.
  7. Click Finish.
  8. Click Install All.
  9. Click Yes when prompted to restart Eclipse.
  10. When Eclipse restarts, go to Window -> Preferences. On the left, expand C/C++ -> Code style. Click New.
  11. Type a name for your new code formatter profile such as No tabs for CSE 12 and make sure the settings are being initialized from K&R [built-in]. Click OK.
  12. In the Tab policy dropdown, select Spaces only and click Ok. Click Ok to close the Preferences dialog.