开发者

resharper or VS hotkey to switch places two parameters, is there such a thing?

开发者 https://www.devze.com 2022-12-14 03:17 出处:网络
it something like this method(a,b); and you hit s开发者_StackOverflow社区ome hotkey and you get method(b,a);

it something like this method(a,b); and you hit s开发者_StackOverflow社区ome hotkey and you get method(b,a); is there such thing ?


You can try

Ctrl+Shift+Alt+left arrow/right arrow

.

Found under

Resharper->Code->Move Left or Move Right

.


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


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消