it something like this method(a,b);
and you hit some hotkey and you get method(b,a);
is there such thing ?
views:
169answers:
4
A:
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
2009-12-10 09:15:53
it's in vs2008 as well
jk
2009-12-10 09:34:32
and msvs2005 though probably not express version
jk
2009-12-10 09:36:35
+3
A:
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
2009-12-10 09:16:00
+6
A:
You can try
Ctrl+Shift+Alt+left arrow/right arrow
.
Found under
Resharper->Code->Move Left or Move Right
.
astander
2009-12-10 09:20:09
NOTE: 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
2010-04-28 21:06:58
A:
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
2009-12-10 09:21:30