it something like this method(a,b);
and you hit some hotkey and you get method(b,a);
is there such thing ?
Asked
Active
Viewed 3,930 times
21

hippietrail
- 15,848
- 18
- 99
- 158

Omu
- 69,856
- 92
- 277
- 407
4 Answers
48
You can try
Ctrl+Shift+Alt+left arrow/right arrow
.
Found under
Resharper->Code->Move Left or Move Right
.

Adriaan Stander
- 162,879
- 31
- 289
- 284
-
8NOTE: this is NOT a refactoring, meaning it will NOT change any callers. It is simply a way to move the text around. If you truly want to refactor (reorder all callers appropriately), use Change Signature, as Sam Holder suggests. – Joshua Flanagan Apr 28 '10 at 21:06
-
11Awesome. Great for fixing (other people's of course) Assert.AreEqual() mistakes. – David Peters Jun 04 '14 at 21:33
-
1Yeah. Other people. Ahem. :) – Christofer Ohlsson Jan 28 '16 at 14:41
7
I don't know if there is a hot key that does just that, but using Resharper you can refactor->change signature, and then reorder the parameters.
The default hot key for change signature is Ctrl-F6

Sam Holder
- 32,535
- 13
- 101
- 181
0
I know Refactor pro does this - it is called the "Reorder Parameters" refactoring.
Looks like VS 10 also has this built in.
And ReSharper calles it Change Signature.

Oded
- 489,969
- 99
- 883
- 1,009
0
In VS >= 2005 Ctrl-R, O is default for inbuilt reorder parameters I think - or right click and chose refactor menu. I dont think this is available on express of course.

jk.
- 13,817
- 5
- 37
- 50