Creating a New File

When you want to add a new file to a project, the most straightforward method is to right-click a folder in the File view and click New File. The file is, by default, given a file extension that corresponds to the file type associated with the folder you select and added to that folder in the project. For example, if you right-click the Source folder and click New File, the file is given a .cbl extension and placed in the Source folder. If you click the same command while clicking the Copylib folder, the default extension is .cpy and the file is added to the Copylib folder. You do not have to use the default settings.

At the same time that the new file is added to the project, it is opened in the Code Editor.

By default, two file templates appear in the New File interface: Blank Text and Source Template. The Blank Text template creates an entirely empty file. The Source Template file contains the very basic skeleton of a COBOL program with some error-handling information.

You are not limited to the default templates. In fact, any text file that you create can be used as a template file. Use the Environment > Template section of the Tools > Options interface to add your template file to the New File interface.