Search code examples
visual-studiorebuild

Avoid accidental rebuild of a project in Visual Studio


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.


Solution

  • 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.)