Visual Studio equivalent to the Eclipse Alt Shift L keyboard shortcut

advertisements

I just did a few years of Java and I'm now back in the C# world. I'm actually happy to be back in Visual Studio except for one thing.

The Eclipse shortcut: ALTSHIFTL really grew on me and I can't find an equivalent in Visual Studio to extract local when the cursor is on a method.

Anyone knows the equivalent in Visual Studio please?


There's no native Visual Studio 2010 refactoring command for 'extract local', as Eclipse has.

The closest you'd get is the 'Extract Constant', which isn't by default bound to a keyboard shortcut. To do this, you have to highlight the entire string, including the double-quote " delimiters.

You could explore third party IDE addons like CodeRush or ReSharper for more functionality.