Configuring AutoCorrect

AutoCorrect can be configured to correct your commonly mistyped words:

Adding an AutoCorrect item

To add an additional mistyped word and its correct spelling:

  1. Click Window > Preferences > Micro Focus > COBOL > Editor > AutoCorrect.
  2. Click Add.

    This opens the Add AutoCorrect Item dialog box.

  3. In the Replace field, type the mistyped word to be replaced.
  4. In the With field, type the correct spelling.
  5. Click OK.
  6. Click Apply.
  7. Click OK.

Exporting the AutoCorrect item list

In addition to editing and removing existing AutoCorrect items, you can perform a bulk export of all items in the list. This allows you to modify large lists rather than making numerous individual additions or edits. It also enables you or your organization to share lists. To export the full list of AutoCorrect items to an XML-formatted file, perform the following steps:

  1. Click Window > Preferences > Micro Focus > COBOL > Editor > AutoCorrect.
  2. Click Export.
  3. Browse to the directory location you want to save the file.
  4. In the File name field, type an output file name.
  5. Click Save.

The exported file has the following format:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<autocorrect>
    <autocorrectitem right="correctly_spelled_word" wrong="incorrectly_spelled_word"/>
    <autocorrectitem right="..." wrong="..."/>
</autocorrect>

Importing an XML-formatted AutoCorrect item list

To import an XML-formatted file containing a list of AutoCorrect items:

  1. Click Window > Preferences > Micro Focus > COBOL > Editor > AutoCorrect.
  2. Click Import.
  3. Browse to the location of your XML-formatted AutoCorrect file and select it.
    Note: The imported file must have the same format as the exported format as described in the section Exporting the AutoCorrect item list.
  4. Click Open.