Rider - Ctrl+Shift+Up/Down

Answered

I am sorry for posting to IntelliJ Users... JetBrains does not have any Rider forums available.

I am trying to change the behavior of the "Move Statement Up" and "Move Statement Down" shortcuts.  In IntelliJ, using Ctrl+Shift+Up/Down will move a statement (or selected block of code) up or down, and would traverse into adjacent code blocks.

In Rider, however, this functionality will completely skip over any code blocks it encounters.

 

For example:

private void Start() {

    if (this == that) {

    }

    DoThisThing();

}

 

In the above code, I want to be able to highlight `DoThisThing();` and use Ctrl+Shift+Up to  move it into the `if` statement code block above.  This works in IntelliJ but not in Rider.

Is there a setting somewhere that would allow me to change how this work?

0
1 comment

Does this bug fit your case? 

https://youtrack.jetbrains.com/issue/RIDER-11875

Try to move the statement without highlighting the phrase, just pointing the cursor on the appropriate line. 

 

 

0

Please sign in to leave a comment.