9

I often click on "rebuild" by accident when I actually want to click "build". This rebuild process may take so long time if there are dependencies of this project...

Do you know any plug-in or a configuration that makes visual studio to ask me if I am sure to rebuild this project?

I hope there is a way to handle this situation.

Rob W
  • 341,306
  • 83
  • 791
  • 678
ufukgun
  • 6,889
  • 8
  • 33
  • 55
  • Have a look at IncrediBuild by www.xoreax.com. While it doesn't prevent you from doing the wrong thing, it definitely helps makeing the outcome of doing so less painful. – sbi Sep 14 '09 at 09:27
  • It certainly was a stupid design decision to place these two menu entries next to each other. Makes me ask whether the VS devs ever use their own product. – Razzupaltuff Sep 14 '09 at 09:51
  • @karx11erx: it makes no sense to not put them next to eachother. Maybe the VS devs just have decent eye-hand coordination? :) – Thorarin Sep 14 '09 at 10:15
  • 1
    @sbi: it is good that i use IncrediBuild for these large build precesses but anyway i loose time even with IncrediBuild but before IncrediBuild there were so many times that i wanted to kill the VS developers :p – ufukgun Sep 14 '09 at 11:12

3 Answers3

15

Go to Tools, Customize. Amend the menus and/or toolbars to suit you. For example you might prefer a custom toolbar that contains just the functionality you want without a Rebuild button on it.

Also try bypassing the mouse altogether with the keyboard shortcut for build: Ctrl+Shift+B. There is no default keyboard shortcut for rebuild so there's no chance of activating that accidentally. (Also, the keyboard shortcuts can also be changed by clicking Keyboard at the bottom of the Customize dialog.)

Alex Angas
  • 59,219
  • 41
  • 137
  • 210
  • 4
    +1: I just did this. I had to go to Tools->Customize->Commands, hit the Context Menus radio button, and then hit the combo box and select "Project and Solutions | Project". That brought up the project context menu, where Build and Rebuild were together. I moved down Rebuild, tres bien! – dario_ramos Jul 11 '11 at 14:18
2

Press F6 to Build (or Shift+F6 to build just one project). There is no hotkey for rebuild in any of the default setups (I think), so you can't hit it by accident ;)

Thorarin
  • 47,289
  • 11
  • 75
  • 111
-3

You can hit Ctrl + Break to cancel a build.

Cosmin
  • 21,216
  • 5
  • 45
  • 60
leewillis
  • 3
  • 1