reggie
reggie

Reputation: 13721

Shortcut to rebuild solution in Visual Studio 2008

The shortcut to Build a solution in Visual Studio 2008 is Ctrl + Shift + B.

I would like to know the default shortcut to Rebuild the solution.

Upvotes: 40

Views: 16634

Answers (4)

IbrarMumtaz
IbrarMumtaz

Reputation: 4393

Another way is to do this:

Tools >> Options >> Environment >> Keyboard.

Locate the textbox decorated by the 'Show commands Containing' lable.

Type >> 'Build.Rebuild' Select >> the rebuild type you want, you have two options to choose from.

Locate the textbox decorated by the 'Press shortcut Keys' lable.

Hit >> 'a key on your keyboard', i.e I used F6 for solution wide rebuild. Click >> the assign button. CLick >> O.K and to exit.

Finally load up a test project to test out the short cut.

Upvotes: 17

JaredPar
JaredPar

Reputation: 755041

The command Build.RebuildSolution is not bound to any key combination in the standard profiles. However you can use the following trick to invoke it

Alt + B, R

This will navigate to the build menu via Alt + B and then R will select the Rebuild option

Upvotes: 71

Prof Von Lemongargle
Prof Von Lemongargle

Reputation: 3768

In my installation, there is no default. I am configured for C#, it's possible other configurations will define this by default, but I don't think so. You can see if there is a key assigned by going to Tools -> Customize, clicking the Keyboard... button at the bottom and typing "Build.RebuildSolution" in the Show Commands Containing edit box. If there is a key assigned, it will show up at the bottom of the dialog.

Upvotes: 10

Devendra D. Chavan
Devendra D. Chavan

Reputation: 9021

There is no default shortcut to Rebuild Solution.

In addition to the ways mentioned in other answers you can perform the rebuild by

  • Create a Visual Studio Macro that rebuilds the solution and assign a keyboard shortcut to macro. The advantage of this approach is that you are no longer restricted by the commands provided in visual studio. You can create a custom operation like rebuild the solution, launch the application process and attach the visual studio debugger to the process. All this in a single keyboard shortcut!

Upvotes: 2

Related Questions