Debug -> Start New Instance Shortcut

February 13, 2021

I’ve recently been giving talks on Azure Service Bus, and one of the things that became annoying was how difficult it was to launch new instances from Visual Studio.

For anyone not aware of this feature, essentially, it allows you to run multiple instances of the same Visual Studio project. The way that you do this is to right-click the project, and under the Debug menu, select Start New Instance. When you’re doing this frequently, it can get tedious.

A Solution

One way around this is to map a keyboard shortcut to the function. If you navigate to Tools -> Options in Visual Studio, you can configure shortcuts in the Keyboard menu:

sni 1

Here, if you find the Start New Instance menu option, you’ll see that it doesn’t have a keyboard shortcut allocated. I picked Ctrl + Shift + F4 for mine:

sni 2

References

https://wheresmykeyboard.com/2015/02/shortcut-visual-studio-debug-start-new-instance/



Profile picture

A blog about one man's journey through code… and some pictures of the Peak District
Twitter

© Paul Michaels 2024