You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在Visual Studio工具栏添加Run、Compile按钮以替代快捷键

How to Add Run and Compile Buttons to Visual Studio Toolbar

Got it, let's ditch those keyboard shortcuts and get your handy Run and Compile buttons right on the toolbar where you can see 'em. Here's a straightforward walkthrough that works for most recent Visual Studio versions (2019, 2022, etc.):

  • First, open the customization menu: Right-click any empty spot on your existing toolbar (like next to the "Save" or "Undo" buttons) and select Customize.... Alternatively, hit Alt + T, C to jump straight to it.
  • Add the Compile button:
    1. In the pop-up Customize window, switch to the Commands tab.
    2. On the left, pick the Build category from the list.
    3. Scroll through the right-hand Commands list until you find Compile—it might have a small hammer icon next to it.
    4. Click and drag this command directly onto your toolbar, then let go. It'll snap into place immediately.
  • Add the Run (Start Without Debugging) button:
    1. Still in the Commands tab, switch the left category to Debug.
    2. Look for Start Without Debugging in the right list—this is the exact action tied to Ctrl + F5.
    3. Drag it to your toolbar, right next to the Compile button if you want them grouped together.
  • (Optional) Tweak the button look: Right-click the new buttons on your toolbar, hover over Button Appearance, and choose Image Only, Text Only, or Image and Text depending on your preference.

Pro tip: If you can't find the commands quickly, use the Find box at the bottom of the Commands tab—type "Compile" or "Start Without Debugging" and it'll filter the results instantly.

内容的提问来源于stack exchange,提问作者Faizan Haidar Khan

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 07:37:18