Search code examples
visual-studio-2010nunitresharpermstestkey-bindings

How can I map some Visual Studio 2010 keybindings to nunit's DEBUG and RUN commands?


Visual Studio has two default keybindings for unit testing :-

CTRL-R then CTRL-T : Debug the current unit test 'context' 
                     (ie where the cursor is currently flashing).

CTRL-R then T : Run the current unit test 'context' (as above).

How can I rebind these to use nUnit? Currently, they only support MSTest.

I also have ReSharper installed, if that's any help.

I grab nUnit via NuGet. I don't manually install nUnit via some msi, fwiw.


Solution

  • I got this on Tool -> Options -> Environment -> Keyboard

    Theres 2 resharper commands, search for contextrun and assign Ctrl+R, T and for contextdebug and assign Ctrl+R,Ctrl+T