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.
TO get 'Extract Constant' you need to install 'PowerCommands for Visual Studio 2010' from:
http://visualstudiogallery.msdn.microsoft.com/e5f41ad9-4edc-4912-bca3-91147db95b99/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With