Home > Coding Helpers, Shared Source > Coding Helpers – Move to Region

Coding Helpers – Move to Region

February 3rd, 2011

The Move to Region (also known as Member MoverCodeRush feature extends the Member drop down menu with a menu item that allows you to move the active member to a region according to your preference:

CodeRush Member Icons and Move to Region preview

The list of regions contains regions that already exist with the current source code file. In addition, it also contains the list of favorite regions that you may specify on the Move to Region options page in the Options Dialog:

CodeRush Member Mover options page

This options page allows you to pre-configure an additional list of regions which will appear in the drop-down menu, regardless of whether or not they already exist in the source code file. Here, you can also specify the position of a member inside target regions:

  • At the top
  • Alphabetically
  • At the bottom

The “Only show top-level regions in targeting menu” option deprecates nested regions showing inside of the Member drop-down menu. Nested regions are shown with a small offset to the right in the list:

CodeRush Move to Regions - nested regions

The “CR_MemberMover” plug-in, containing this feature, is an open source sample plug-in from the CodeRush Shared Source solution. You are welcome to tweak it for your specific needs as you’d like.

Products: CodeRush Pro
Versions: 10.2 and up
VS IDEs: any
Updated: Feb/03/2011
ID: C064

Similar Posts:

  1. No comments yet. Be the first and leave a comment!