Skip to main content

Structural Navigation

CodeRush can navigate within your code by logical blocks.

Nav_StructNav

Commands

You can use the following commands to jump to different logical blocks inside the code tree.

Command Description Shortcut
NavNextSibling Moves the caret to the next sibling element Ctrl+Down Arrow
NavPreviousSibling Moves the caret to the previous sibling element Ctrl+Up Arrow
NavParent Moves the caret to the parent element Ctrl+Shift+Up Arrow
NavFirstChild Moves the caret to the first child element Ctrl+Shift+Down Arrow

Enable Shortcuts

Select CodeRush\Shortcuts… from the Visual Studio menu to open the Shortcuts options page.

Config_Shortcuts_Access

Open the Navigation | Structure group and check the Enabled checkbox for each shortcut.

Config_Shortcuts_Access

Examples

Jump to Next/Previous Sibling Element

Config_Shortcuts_Access

Jump to Parent Element

Config_Shortcuts_Access