Home > Software engineering >  How to add shortcut for create unit test method
How to add shortcut for create unit test method

Time:01-17

The environment is Visual Studio Community 2022, now I can add test by right click the method and select the Create Unit Tests

enter image description here

But there is no shortcut for it is possiable to set shortcut for this?

CodePudding user response:

In Visual Studio Community 2022,select Tools > Options > Environment > Keyboard, search EditorContextMenus.CodeWindow.CreateUnitTests then set shortcut and assign (for me I use Ctrl T, Ctrl T) enter image description here

After that you will get it like below

enter image description here

  • Related