Shortcut for extract local variable in Visual Studio or ReSharper (for C#)
Is there a shortcut for extracting local variable in VS or ReSharper? I know that there are shortcut for extracting field variable but I cannot find for extracting local variable. Thanks in advance. Right-clicking a local variable, I get this context menu: Assuming you want shortcuts for the highlighted commands, you can define your own shortcuts through the Visual Studio keyboard mapper. (Tools -> Options -> Environment -> Keyboard) Introduce Variable... = "ReSharper.ReSharper_IntroVariable" Introduce Field... = "ReSharper.ReSharper_IntroduceField" Introduce Parameter... = "ReSharper