Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keyboard shortcut to switch between Debug and Release modes in Visual Studio

Is there a keyboard shortcut that allows you to easily change Build Configuration (say, from Debug to Release) in Visual Studio (2008)?

In the Standard Toolbar there is a drop-down where one can easily change between Build Configurations, but I only know how to access it with my mouse.

Is there an easy way this can be done via the keyboard?

like image 332
Mark Seemann Avatar asked Jun 23 '09 17:06

Mark Seemann


People also ask

How do I change debug to release in Visual Studio?

On the toolbar, choose either Debug or Release from the Solution Configurations list. From the Build menu, select Configuration Manager, then select Debug or Release.

What is Ctrl K in Visual Studio?

Edit.SelectionCancel. Surround with. Ctrl+K, Ctrl+S. (available only in Visual Studio 2019 and earlier)

What is Ctrl Shift F in Visual Studio?

Ctrl-Shift-F is used to find all the ocuurance of a string with in entire solution and display find result window as shown below. Ctrl-F is used to find a string in the current document, project and all open documents one by one.

What does Ctrl w do in Visual Studio?

How to use Ctrl+W to close a tab in Visual Studio – Done by code.


3 Answers

Just for the record, it's actually not that hard to use the standard keyboard mappings for the Configuration Manager dialog:

Alt+B, O, (Arrow keys or first letter, e.g. D(ebug) or R(elease)), Enter

The dialog box pops up fairly quickly, so this works for me.

like image 108
Mark Seemann Avatar answered Oct 03 '22 13:10

Mark Seemann


You can set up a key combo through the Tools -> Options -> Environment -> Keyboard dialog. The Build.SolutionConfigurations command will put your focus on the build configuration drop down so you can easily change the configuration with the arrow keys. Additionally the Build.SolutionPlatforms selects the Platform drop down. The only drawback is that focus will be taken away from whatever was previously selected.

like image 39
heavyd Avatar answered Oct 03 '22 12:10

heavyd


It doesn't seem there are, but you can set a key command (Tools -> Options -> Environment -> Keyboard) for Build.ConfigurationManager, which will open a dialogue box that you can use the cursor keys to navigate quickly.

You could also set up a macro (similar to this) and bind that to a hot key.

like image 37
ravuya Avatar answered Oct 03 '22 13:10

ravuya