Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Eclipse C/C++ Developer Guide
Previous Page Home Next Page

Creating a project via a project template

From CDT 4.0 its possible to create projects based upon templates defined by the IDE supplier. What this means is that you can easily create a project which contains customized source code and is ready for use in a few clicks. Some aspects of the generated project may be customized by the user as part of the new project wizard.

To create a project from a template:

  1. Click File > New > C Project or File > New > C++ Project.

    File >New > C++ Project
  2. The wizard will open as shown below.
    Expand the project type that you are interested in. For more information on project types, see Selecting a project type This shows the template projects that you can use as a basis for your new project. CDT comes with some simple templates, but ISVs can add further templates by using the org.eclipse.cdt.core.templates extension point.
    In the Project Name box, type a name. The example uses "HelloWorld"

  3. New Project Wizard
  4. Click Next.
  5. The next page is dependent on the type of template you selected. It will consist of a number of input fields, maybe with default values, that will be fed into the template you create.

  6. New Project Wizard
  7. This last page "Select Configurations" can be skipped, or allows further project configuration in the same way as non-template-based projects.

    New Project Wizard

  8. To create your project, click Finish.
  9. In the Project Explorer you will see that the new project has been created. You will see that the source file has been customized with the values you entered earlier in the wizard.

    The project created by the wizard

  10. Sometimes values you enter into the template wizard will be remembered between sessions in order that you do not need enter them each time. If you want to change these you can use Window > Preferences > C/C++ > Template Default Values

    New Project Wizard

Related concepts
CDT Projects
Project file views

Related tasks
Working with C/C++ project files

Creating a project

Related reference
Project properties

IBM Copyright Statement

  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire