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?
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.
I have not worked in eclipse for years so I am not familiar with the example, but have you tried code snippets in VS?
There is a tool for customizing them that you can get from here.
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