Creating New Files or Folders

When you want to create a new file or a sub-folder in your project, the best way to do it is to use the facilities of Code Co-op.

To Create a File or Folder

The advantage of using Code Co-op to create new files is that you won't forget to check them in. They will automatically appear in your Check-in area ready for check-in.

File Types

Code Co-op keeps information about various types of files. When you create a new file, you may choose from the following types: header, source, other text, or binary. For header files you have the option of creating a file initialized with the standard C (C++) preprocessor directives that prevent multiple inclusions. If you program in C or C++ we highly recommend using this feature. For both header and source files you may define your copyright notice (in the form of a comment). It will be added to the file you create. Here's an example of a header file foo.h created using these options:

#if !defined (FOO_H)
#define FOO_H
// Your Company (c) 2007

There is an important distinction between text (including header, source, and other text) files and binary files. Code Co-op uses a special binary differ to find differences between versions of binary files. These binary diffs are highly optimized, but they cannot be displayed. Examples of binary files are: Word documents, Excel spreadsheets, MP3 files, images, etc.

Code Co-op remembers association between file extensions and types.

You can change the type of an existing project file using the Selection>Change File Type menu item.