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. 回答1: 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