Visual Studio可以在重建前提示吗?

问题描述:

是否有任何在重建之前提示Visual Studio的方法,或通过其他任何方法可以更轻松地避免单击"Rebuild"而不是"Build"?

Any way to have Visual Studio prompt before rebuilding, or any other way to make it easier to avoid hitting "Rebuild" instead of "Build"?

右键单击一个项目时,我浪费了无数小时,而当我想单击构建"时,偶然选择了重新构建".

I've wasted countless hours when I right click on a project and select "Rebuild" on accident when I meant to click "Build".

这是针对本机C ++解决方案的.

This is for a native C++ solution.

Visual Studio 2010允许自定义菜单.您可以从项目上下文菜单中删除重建"项.或者,您可能只想将重建"命令从构建"命令移开,这样就可以减少意外击中错误项目的可能性.

Visual Studio 2010 allows for customization of the menus. You can remove the "Rebuild" item from the Project context menu. Or you may want to just move the "Rebuild" command away from the "Build" command so that you will be less likely to accidentally hit the wrong item.

从VS 2010开始,

From VS 2010,

  • 选择工具菜单
  • 选择自定义...
  • 选择命令"标签
  • 选择上下文菜单"单选按钮,然后选择项目和 解决方案上下文菜单|项目"
  • 选择重建"并移动或删除它.
  • Select the Tools Menu
  • Select Customize...
  • Select the Commands tab
  • Select the "Context menu" radio button and select "Project and Solution Context Menus | Project"
  • Select "Rebuild" and move it or remove it.