Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

it something like this method(a,b); and you hit some hotkey and you get method(b,a); is there such thing ?

like image 810
Omu Avatar asked Dec 10 '09 09:12

Omu


People also ask

What is the use of ReSharper in Visual Studio?

ReSharper helps instantly get to any code in a solution, no matter how large the solution is. It can also navigate you from any symbol to its related code such as implementations of a given interface, extension methods of a class, or usages of a field.

How do I search everywhere in Visual Studio?

Visual Studio 17.2 Preview 3 introduces a brand-new All-In-One search experience that merges the existing VS Search (Ctrl + Q) and Go To (Ctrl + T) to allow you to search both your code and Visual Studio features quicker and easier than ever, all in the same place.


2 Answers

You can try

Ctrl+Shift+Alt+left arrow/right arrow

.

Found under

Resharper->Code->Move Left or Move Right

.

like image 182
Adriaan Stander Avatar answered Sep 22 '22 02:09

Adriaan Stander


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

like image 43
Sam Holder Avatar answered Sep 20 '22 02:09

Sam Holder