I love R because it reduce mouse usage

I have this piece of code

image

And doc2 is checked because it could be null, so I can ALT+RET and choose the right action, as example check if doc2 is null

image

And I got this

image

With a couple of click on the keyboard, if you to not like all of the code to be indented inside the if you can press ALT+RETURN on the declaration of the doc2 variable

image

Resharper add an if and the caret is positioned on the default action, that is throw NotImplementedException, so you can just type return; and the game is done

image

Such operations are so common when you write code, that the ability to issue such check without leaving your finger from the keyboard is invaluable.

alk.