Here’s a tip on how to tweak your Visual Studio code window context menu to include the Attach to Process debug command.
Navigate to Tools > Customize.
In the Toolbars tab, check the Context Menus checkbox to reveal a toolbar above with various context menus.
Navigate to Editor Context Menus > Code Window
Back in the Customize window, click the Commands tab and navigate to Debug > Attach to Process.
Now drag the Attach to Process command from the window up to the toolbar and drop it where you want it to show.
Once you finish customizing, when you write some code you can easily right click within the CodeBehind and click Attach to Process. This might not be the biggest improvement but it will save you a click or two, especially if you debug often.
One thought on “Right-Click Attach To Process in Visual Studio”
Good tip but you can also press ctrl + alt + P.
Saves even more time 😉