Datasheet

PSoC Designer IDE Guide, Document # 001-42655 Rev *B 93
Code Editor
4.2.2 Adding New Files
To add a file:
1. Click the New File icon or select File > New File.
2. In the New File dialog box, select a file from the File types.
3. In the Name field, type the name for the file.
4. The current project directory is the default destination for your file. Uncheck the Add to current
project field and click Browse to identify a different location if you do not want the default. The
Browse button is only enabled if you uncheck the Add to current project field.
Figure 4-3. New File Dialog Box
5. When finished, click OK.
Your new file is added to the file source tree and appears in the main active window.
4.2.3 Adding Existing Files
You are also able to add existing source files to your project (either C or assembly). Do this by
accessing Project > Add File and identifying the source file (by locating the file with the file dialog).
Keep in mind that you add a copy of your original file to the project, not the original itself.
If the existing file you want to add is under a lib folder (…\lib), this file is added to the Library
Source tree and resides in the lib folder of the project.
4.2.4 Removing Files
You can remove files from your project in one of two ways:
1. To remove the file, right-click on the file and select Delete.
2. Access Project > Remove from Project or right-click the file in the source tree and select
Remove from Project ([Delete] key).