Try OpenEdge Now
skip to main content
Online Help
Introducing the ABL Editor : Tasks : Writing ABL code : Using assistance features : Using context assistance : Using bracket-matching
 
Using bracket-matching
Bracket-matching provides visual cues illustrating the location of matched pair elements. With bracket-matching enabled, positioning the cursor on one paired element highlights the matching element in the code sequence.
Bracket-matching works with:
*Double and single quotation marks
*Brackets and parentheses ( "{", "[", "(")
*Code blocks
*DO, FOR, REPEAT
*FUNCTION, PROCEDURE, METHOD
The code example below illustrates highlighting of the matching element (in this case, a closing parenthesis):
Note: Bracket-matching depends on the parsing of the code being up to date. In some circumstances, notably in the case of very large files or projects connected to remote databases, updating the analysis of the code can take several seconds or more. If the code has not been fully analyzed within a user-specified interval (by default 300 milliseconds), the bracket-matching feature is temporarily disabled automatically. The feature is automatically re-enabled as soon as parsing is up to date again.
With the cursor in or immediately to the right of a paired element, press CTRL+SHIFT+P to go to the matching element to jump to a matching element. For example, using this key sequence with the cursor in a DO statement repositions the cursor to the right of the corresponding END statement.
Disabling bracket-matching does not disable jumping to the matching element with CTRL+SHIFT+P.
This feature is enabled by default. To turn it off or on:
1. Choose Window > Preferences to open the Preferences window.
2. Choose Progress OpenEdge > Editor > Assistance to display the Assistance page.
3. Uncheck or check the Highlight matching elements in code option.