Keyboard shortcut for running tests with Resharper
Having moved back into the world of C#/.NET development after a few months in the Java world I have had the joy of getting to use Resharper again.
One annoyance that myself and my team have been having over the past few weeks is running unit tests. We always end up going to the Solution Explorer, right click the project and then click 'Run Unit Tests'. There is another way…
From Visual Studio:
- Click on Tools > Options > Keyboard
- Select the 'Show commands containing' box and type in 'resharper.resharper_unittest'.
- Select 'Resharper.Resharper_UnitTest_ContextRun'
- Assign this to a keyboard shortcut (I usually use Shift-F11 as that's the same as IntelliJ!) and running unit tests need never be a pain again.

Hey I've found the master of the foosball table himself! Funny how this came up while I was Googling for unit testing keyboard shortcuts.
Love Resharper myself.. I thought by default running a unit test is set at Ctrl-R, T. Dunno thought the PC at this client site was set up like this but I have to assign a keyboard shortcut to it when I'm back at work.
Ken Hui
21 Oct 08 at 10:44 am