Matching Conditional Statements

Home Page (Text Editor)OverviewHow Do I ... TopicsFAQReference

Source code is often grouped between compiler preprocessor statements. The Text editor will allow you to move from inside a conditional statement to the enclosing preprocessor statement.

To move to a matching conditional statement

  • Move the insertion point to a line that is enclosed by preprocessor statements.

  • Press the ConditionalUpkey combination to move the insertion point up to the line containing the matching preprocessor statement (such as #ifdef).

  • Press the ConditionalDownkey combination to move the insertion point down to the line containing the matching preprocessor statement (such as #endif).

    Note   If you hold down the SHIFT key, you can use the ConditionalUpExtend and ConditionalDownExtendkey combinations to select text from the current cursor position to the enclosing #if, #ifdef,#else, #elif, or #endif preprocessor statement. This key binding of the SHIFT key with the ConditionalUpExtend and ConditionalDownExtend commands is available in the standard configuration after installation. If you have changed shortcut key assignments, this keystroke combination may not be available.