Expand/Collapse Regions
CodeRush adds a shortcut, which enables you to use a keyboard for expanding and collapsing regions. To collapse or expand the code region, do the following:
- Place the caret behind the #region or #endregion directive.
- Press the Space key.
NOTE
CodeRush also provides a shortcut that allows you to expand or collapse any collapsible code block using the Space key. Open the shortcuts configuration using the CodeRush | Shortcuts menu item, find the Space shortcut with the [OnOutliningStartLine]&&[AtBeginningOfLine] context, and select its Enabled checkbox to enable it.