In the gap between updating to VS2008 and our company deciding that they needed to purchase the upgrade for ReSharper I was stuck with a vanilla IDE. Not being satisfied with the time it took me to do some things I decided to play with CodeRush Express. One of the features of CodeRush Express that I really like is the way that it is possible to quickly create a variable simply by typing an expression which results in a return value then pressing a key combination.
Lets say, for example, that I wanted to create a new Something and assign it to a variable. In CodeRush express, I simply type
and hit the hot-key (typically ctrl-`). A menu pops up, and depending on the context hitting enter typically results in code similar to the following
Something something = new Something();
The variable name, and variable type are both editable (if desired). The same technique works with return values from methods, etc.
Does similar functionality exist in ReSharper? I got used to having it available and I don't want to go back to typing extra if I don't need to. :-) (I'm using the 5.0 EAP build, if that helps.)