Setting editor options

You can use the Editor Options preference page to create a customized set of editor options for each target environment.

About this task

You can use this preference page to accomplish the following goals:
  • Create a custom set of editor commands that run when you open a file to change a program.
  • Specify that you want the editor to insert an autocomment into your source code when you edit it for a particular target environment.
  • Specify which macro file to use, depending on the target environment.
Use the Editor Options preference page to do the following tasks:
  • Create a set of editor options.
  • Rename a set of editor options.
  • Remove a set of editor options.
  • Import a set of editor options from another location.
  • Export a set of editor options to another location.
  • Configure a set of editor options.

Creating a set of editor options

Procedure

To define a new set of editor options, complete the following steps:

  1. In the Preferences window, navigate to z/OS Solutions > z/OS UNIX Subprojects > Target Environments > Editor Options.
  2. Click New.
    The New Editor Options window opens.
  3. In the Name field, type a name for the set of editor options.
  4. From the list, select the editor options that suppy the initial settings for the set that you are creating.
  5. To save your selections and close the window, click OK.
    The name that you assigned to the new set of editor options is displayed in the list of available sets of editor options.

Renaming a set of editor options

About this task

You can modify the name of an existing set of editor options.

Procedure

  1. From the list of available sets of editor options, select the set that you want to rename.
  2. Click Rename.
    The Rename Editor Options window opens.
  3. Type the new name that you want to apply to this set of editor options.
  4. To save your changes and close the window, click OK.
    The new name that you assigned to this set of editor options is displayed in the list of available sets of editor options. All references to this set of editor options are updated to use this new name.

Removing a set of editor options

About this task

You can remove a set of editor options from the list of available option sets. You cannot remove a set of editor options that is referenced by an existing target environment definition, In this case, Delete is disabled.

Procedure

  1. From the list of available editor options sets, select the set that you want to remove.
  2. Click Delete.
    The Delete Confirmation window opens.
  3. To remove the selected set from the list, click OK.

Importing a set of editor options

About this task

You can import a set of editor options that is stored in another location into the list in the Editor Options preference page.

Procedure

  1. Click Import.
    The Import Editor Options window opens.
  2. Do one of the following actions:
    • In the File field, type the name of the file that contains the editor options that you want to import.
    • To browse for the location of the file that you want to import, click Browse.
  3. Optional: To overwrite any of the sets of editor options that have the same name as a set of editor options that exists in your workspace, select Overwrite existing definitions.
  4. Click OK.
    If you selected the Overwrite existing definitions check box, the Confirm Overwrite window opens. Do one of the following actions:
    • To complete the import and overwrite any existing sets of options, click OK.
    • To cancel the import and not overwrite existing sets of options, click Cancel. You can use the Import Editor Options window to modify your selections.

    If you did not select the Overwrite existing definitions check box, the selected definitions are not imported if a set by the same name exists. An error message is displayed to indicate any definitions that are not imported because of a conflict after the import is complete.

Exporting a set of editor options

About this task

You can export a set of editor options from the Editor Options preference page to another location.

Procedure

  1. From the list of available editor options sets, select the set that you want to export to another location.
  2. Click Export.
    The Export Editor Options window opens.
  3. Do one of the following actions:
    • In the File field, type the name of the file that you want to export the editor options to.
    • To browse for the location of the file that you want to export the editor options to, click Browse.
  4. In the Select items to export section, select the checkbox for each editor option set that you want to export.
  5. To export your selections and close the window, click OK.

Configuring a set of editor options

Procedure

  1. From the list of available sets of editor options, select the set that you want to configure.
    The current settings for this set of editor options are displayed.
  2. You can configure the following options for each set of editor options:
    • HLASM
    • CPP
    The Editor Options preference page contains a set of tabs that you can use to configure each of these options. For details on setting these options, refer to the related topics.