Resharper move line up down not working

kosnkov picture kosnkov · Mar 26, 2014 · Viewed 20.6k times · Source

I can't make it working, move line up or down doesn't work. When I reset keyboard for VS and applay scheme for Resharper it ask me for this : enter image description here

and if I take first selection , then alt + up switch me between methods, if I use second selection then this combination does not effects.

Answer

Igal Tabachnik picture Igal Tabachnik · Mar 27, 2014

Alt+Up is not a ReSharper shortcut to move a line. It most likely belongs to the Productivity Power Tools extension, that has a feature to move one or more (selected) lines.

Personally, I don't like this feature in PPT, since it will just move the line(s), regardless of their scope, causing compilation errors. I much rather use ReSharper's feature of moving blocks of code up or down, by pressing Ctrl + Shift + Alt + / or / - when on the beginning of the line, it will move the entire line or block of code, but can also be used to move entire methods, change the order of parameters, etc.