如何向Visual Studio添加自定义命令? [英] How can I add a custom command to Visual Studio?

查看:179
本文介绍了如何向Visual Studio添加自定义命令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用一个外部命令-基本上启动一个批处理文件.我想为此在IDE中放置一个工具栏按钮(可能还有键盘快捷键).有没有简单的方法可以做到这一点?

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 IDE. Is there an easy way to do that?

推荐答案

首先,通过选择工具",外部工具"并填写对话框,将一个项目添加到工具"菜单中,如下所示:

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

然后调出工具自定义",单击底部的键盘"按钮,然后找到适当的外部工具编号:

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

这篇关于如何向Visual Studio添加自定义命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆