Reputation: 7219
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.
Upvotes: 11
Views: 3522
Reputation: 60068
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.)
Upvotes: 18
Reputation: 48516
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 ;)
Upvotes: 2