Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does a keyboard short cut exist in Visual Studio 2010 to debug the current project?

Tags:

I have a solution with 36 projects. When I'm working on one of the projects I'd like to be able to debug it without having to right click the project then select 'debug' then select 'start new instance'.

Thank you.

like image 678
user13070 Avatar asked Dec 06 '11 10:12

user13070


People also ask

How do I enable keyboard shortcuts in Visual Studio?

On the menu bar, choose Tools > Options. Expand Environment, and then choose Keyboard. Optional: Filter the list of commands by entering all or part of the name of the command, without spaces, in the Show commands containing box. In the list, choose the command to which you want to assign a keyboard shortcut.

What does Ctrl k do in Visual Studio?

Ctrl+K for Removing Bookmarks Visual Studio contains a characteristic that enables users to add a bookmark. This bookmark can be added to a line of code in a solution.


2 Answers

You could add in the Options dialog under Environment->Keyboard "ClassViewContextMenus.ClassViewProject.Debug.Startnewinstance" as a shortcut. This starts debugging on the current project.

(maybe this changed a bit for 2010)

source: http://www.sharpdevel.com/2009/09/visual-studio-debug-start-new-instance.html

like image 98
stackr Avatar answered Oct 12 '22 00:10

stackr


One thing that you could do is to right click your Solution, go to Properties. Select 'Startup Project' and choose 'Current selection'. After this, the project that you click will be set as startup project. You can debug the project that you want by clicking it and pressing F5 (or whatever key you have for start debugging).

like image 41
uandrew Avatar answered Oct 12 '22 00:10

uandrew