Search code examples
c#visual-studiokeyboard-shortcutsjustcode

Visual Studio shortcut for Create new Interface and Create new Basic Unit Test


In Visual Studio you can press SHIFT+ALT+C to create new class file. I am looking for similar shortcut for new interface file and new "basic unit test" file. I have Telerik JustCode so please do not suggest simillar product. But if a small extension exists for example, it would be nice to know. BTW I am using Visual Studio 2010 (C#).


Solution

  • There are no built-in solutions for this, but you can easily record macros (In the Tools menu):

    enter image description here

    You can rename them in the Macro Explorer (Alt+F8)

    You can then assign shortcuts to those macros in ToolsOptionsKeyboard.

    EDIT This doesn't work for adding a new Basic Unit Test. You'll only get to the New Test selection dialog, even with this method.