The COBOL templates support standard Eclipse behavior when variables are specified in the template, as follows:
When a template is inserted, the cursor points to the first variable that is to be highlighted.
Click Tab to move forward to the other variables in the template.
Press Return or Escape to exit the template.
Use the auto-completion feature in Eclipse to help write code faster and more efficiently. This feature provides a list of accessible keywords according to COBOL language specification. The program can propose a word, phrase, or a division that you want to type without actually typing the complete word, phrase, or a division.
To trigger this feature while writing code in COBOL editor, perform the following steps:
Place the cursor, where you need assistance with the content.
Click Ctrl+Space.
The standard statements are parsed and displayed in a list contains both language-based keywords and DMS or RDMS commands. There is no option to display only the DMS or RDMS commands.
Notes:
When you type the first few characters, the content assistant loads the proposals that are filtered based on the characters typed. If no characters are typed, the proposals related only to the specific division are loaded.
The color coding for DMS and RDMS commands is the same as the COBOL keywords. This helps you to visually determine if the DMS and RDMS keywords in the COBOL program are correct.
Content Assist for C editor supports only RDMS statements. There is no color coding available for RDMS statements.
Use the code navigation feature in Eclipse to quickly navigate to the paragraph and section of your code.
To trigger this feature while writing code in COBOL editor, perform the following steps:
Place the cursor on the section name or paragraph name you need to refer.
Do one of the following:
Click F3.
Right-click the required attribute and select Open Declaration.
Hold down the Ctrl key, move the mouse over the attribute in the editor, and click the hyperlink.
The control navigates to the declaration of the selected attribute.
To
return to the last edit location, click
in the
menu bar.