You will learn how to:
-
Move type members -
Reorder parameters -
Move statements within a block -
Move statements out of or into a block -
Move closing brace
- Place the caret in a member declaration, for a example at its name:
- To move the member up or down, do one of the following:
- On the main menu, choose ReSharper | Edit | Rearrange Code | Move Up or ReSharper | Edit | Rearrange Code | Move Down.
- Press Ctrl+Shift+Alt+Up or Ctrl+Shift+Alt+Down.
Look at the example below: 
Press Ctrl+Shift+Alt+Down to move ClassMethod1 down. ReSharper moves not only the method declaration, but also related XML comment:
- Place the caret at any parameter in a method declaration or a method call:
- To move the parameter to the right or to the left within the parameter list, do one of the following:
- On the main menu, choose ReSharper | Edit | Rearrange Code | Move Right or ReSharper | Edit | Rearrange Code | Move Left.
- Press Ctrl+Shift+Alt+Right or Ctrl+Shift+Alt+Left.
Tip
In order to move method parameters both in method declaration and all its usages, use the
- Place the caret anywhere in a statement.
- To move the current statement up or down within the block of code, do one of the following:
- On the main menu, choose ReSharper | Edit | Rearrange Code | Move Up or ReSharper | Edit | Rearrange Code | Move Down.
- Press Ctrl+Shift+Alt+Up or Ctrl+Shift+Alt+Down.
Look at the example below:
Press Ctrl+Shift+Alt+Up to move if statement up.
- Place the caret anywhere in a statement.
- To move the current statement out of or into the block of code, do one of the following:
- On the main menu, choose ReSharper | Edit | Rearrange Code | Move Left or ReSharper | Edit | Rearrange Code | Move Right.
- Press Ctrl+Shift+Alt+Left or Ctrl+Shift+Alt+Right.
Look at the example below: 
Press Ctrl+Shift+Alt+Left to move if statement out of for loop.
Obviously, it is easier to move one brace than one statement. From now and then, you can move the closing brace of a code block including and excluding statements.
- Place the caret at the closing brace of a code block.
- Do one of the following:
- On the main menu, choose ReSharper | Edit | Rearrange Code | Move Up or ReSharper | Edit | Rearrange Code | Move Down.
- Press Ctrl+Shift+Alt+Up or Ctrl+Shift+Alt+Down.
Look at the example below: 
To exclude increment operation from using statement, place the caret at the closing brace and press Ctrl+Shift+Alt+Up:
