Previous Topic Next topic Print topic


Setting Compiler Directives on Individual Files

Files in your project inherit the properties set on the project level. You can specify properties on individual files that differ from and override the project's properties.

Files that are part of a project

To set properties on individual files in a project:

  1. In Solution Explorer, right-click the file in your project whose properties you want to change.
  2. Click Properties.
  3. Configure the file properties as required, then click OK.

Standalone files

The following functionality is only supported for native COBOL.

Standalone files are files that are opened in the IDE without a project.

To specify Compiler directives for compiling standalone files in the IDE:

  1. Open a file in the editor using File > Open > File.

    When the file is opened, the editor shows an information task bar with some commands to help you locate an .idy file, review the default Compiler directives that will be used to compile the file or compile with the default directives specified in the IDE.

    You can specify or change the Compiler directives from two places:

    • Specify a Symbols file - click Browse for symbols in the information task bar to manually select the program's .idy file that will provide the directives and additional information about the file.
    • Modify the global IDE directives -click Edit standalone editing build directives.

      This opens the IDE settings for standalone files in Tools > Options > Micro Focus > Standalone Editing > Build Directives.

    • Specify directives that only apply to the current file:
      • Either right-click in the editor, and click Compiler Options.
      • Or, open the file properties window (using F4) and check the Build Directives section. The directives you specify in this window only apply while the file is opened in the editor.
Previous Topic Next topic Print topic