How can I add a custom command to Visual Studio?

前端 未结 2 492
情话喂你
情话喂你 2020-12-15 04:50

There\'s an external command I\'m using constantly - basically launching a batch file. I\'d like to put a toolbar button (and possibly keyboard shortcut) for this into the I

相关标签:
2条回答
  • 2020-12-15 05:29

    All the configured external commands in VS are available to add to a Toolbar or Menu through the Tools>Customize menu as "External Command ##". You just need to know which number corresponds to the particular command you've configured. I believe it is in order of entry in the external commands list.

    Similarly, you can find those names in the commands list in Options>Environment>Keyboard and assign a shortcut to your command that way.

    0 讨论(0)
  • 2020-12-15 05:39

    First, add an item to your Tools menu by choosing Tools, External Tools, and filling out the dialog, like this:

    enter image description here

    Then bring up Tools Customize, click the Keyboard button at the bottom, and find the appropriate external tool number:

    bind to a key

    0 讨论(0)
提交回复
热议问题