Back to Devexpress

Include Previous/Next Element

coderushforroslyn-400661-coding-assistance-selection-tools-include-previous-next-element.md

latest924 B
Original Source

Include Previous/Next Element

  • Dec 15, 2021

This tool allows you to select code blocks above and below the selected code block.

Use Ctrl+Alt+Shift+Up Arrow or Ctrl+Alt+Shift+Down Arrow to select all the text from the caret’s current position to the previous or next code element.

How to Enable

To enable this feature, open the IDE | Shortcuts options page, expand the Selection | Structure group and enable Ctrl+Alt+Shift+Up Arrow and Ctrl+Alt+Shift+Down Arrow shortcuts in it.

Note

You can use the Include Previous/Next Element feature in combination with the Selection Expand/Reduce feature.