I’m in love with the function in Eclipse “assign to field”. Basically, when I have
getString();
and I type Ctrl + 2, Eclipse converts this into
String getString = getString();
Is this possible in VS 2010?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I believe the thing you’re looking for is a refactoring typically called “introduce variable”. As far as I know, Visual Studio doesn’t support this. However ReSharper and other tools like it do.