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.
- 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.
- Click mouse button 2 over the file or files you have selected. A pop-up menu appears.
- Select the action that adds the source file to where you want it in the configuration
file:
- Select Add Source to Configuration. to add the source file to the top
of the configuration file in a source directive.
- Select Add Source to Source Directive... to add the source file to an
existing source directive. A dialog box is displayed.
- Select Add Source to Target Directive... to add the source file to an
existing target directive in the configuration file. The source file is added in a source
directive. A dialog box is displayed.
- In the dialog box, select the directive that you want to add this file to. The complete
list of directives in the current configuration file and any included configuration files
is displayed by clicking the arrow at the end of the Source or Target
field.
- Ensure Use Relative Path is selected to add the source
files with a path name relative to the configuration file directory. When this option is
not selected, the source files are added with full path names.
- To undo the selections you have made and to reset the Use Relative Path
to its default, click Reset. Click Cancel to close the
dialog box without adding the source file.
- Click Apply to save the change to the configuration file. To update the
codestore and the other views in the IDE, you must build the project.
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.
- In the Source and Groups view, select the source or group directive that you want to add
the new source file to.
- In the Change Source and Groups view, type the path and file name of the source file in
the Source entry field.
- 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.
- Click Add to add the file to the Files list. The Files
list is updated.
- 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.
- 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:
- In the Source and Groups view, select the new file.
- In the Source view, click the arrow for the file name field. Select the new file from
the list.
- 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