Assume I have the following..
public void DoSomething()
{
var foo = 1 + bar;
}
If I type var b ReSharper will recommend bar for the variable name. The problem then is that I need to press the down key and enter to select the recommendation. Is there a quicker way to select the top option?
I’d rather avoid having to create an AutoHotKey shortcut…
** UPDATE **
My primary concern is not having my hands leave the home row as I’m a heavy Viemu user.
Just press
Ctrl+Space, and the only option on the list (that is, “bar”) will be automatically committed.The other answer is perfectly valid as well
Actually as soon as you’re in this caret position:
you can Alt+Enter to see ReSharper suggest different declaration option where “Create local variable ‘bar'” will be the first option.