Add Source Files to a Project

You can add either existing or new source files to your project.

Add Existing Source Files to a Project

To add existing source files to your project, use the Files view in the Host section.

  1. Select the file you want to add to your project, and click mouse button 2. A menu is displayed. You can also select multiple files by holding down the Ctrl key and selecting the files with mouse button 1.
  2. Click mouse button 2 over the file or files you have selected. A pop-up menu appears.
  3. Select the action that adds the source file to where you want it in the configuration file:

 

Add New Source Files to a Project

To add a new source file to your project, use the Source and Groups page of the Configuration section.

  1. In the Source and Groups view, select the source or group directive that you want to add the new source file to.
  2. In the Change Source and Groups view, type the path and file name of the source file in the Source entry field.
  3. Ensure Use Relative Path is selected to add the source file with a path relative to configuration file directory. If you do not select this option, the source will be added with the path name you specified.
  4. Click Add to add the file to the Files list. The Files list is updated.
  5. To change or remove a file from the Files list, select the file and click Change or Remove. If you want to undo the selections you have made, click Reset.
  6. Click Apply to save the change to the configuration file. To update the other views in the IDE, you must build the project.

The new file will not exist in the file system until you edit it. To edit the new file, use the Source and Groups page:

  1. In the Source and Groups view, select the new file.
  2. In the Source view, click the arrow for the file name field. Select the new file from the list.
  3. The new file will be displayed with one empty line for you to edit.


Workbook
Configuration Files


Add or Change Source Files Overview
Remove Source Files from a Project
Search a View Using Live Find