将工具栏按钮添加到TFS的“我的作品"在Visual Studio中 [英] Add toolbar button to TFS' "My Work" in Visual Studio

查看:119
本文介绍了将工具栏按钮添加到TFS的“我的作品"在Visual Studio中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现我经常去团队资源管理器中的我的工作"窗格,但是我还没有找到一种一键式到达那里的方法.我可以为命令TeamFoundationContextMenus.Commands.GoToMyWork创建快捷键,并且该快捷键有效,但是我正在寻找可以在工具栏上单击的东西.

I find I go to the My Work pane inside the Team Explorer frequently, but I haven't found a way to get there in one click. I can create a shortcut key for the command TeamFoundationContextMenus.Commands.GoToMyWork and that works, but I'm looking for something I can click on a toolbar.

因此,具体来说,我的问题是:该选项在工具栏自定义添加命令"列表中的何处存在?类别很多,每个类别很多.我还没有找到一种搜索方法,只能滚动.

So specifically, my question is: where in the toolbar customization "Add Command" list does this option exist? There are several categories and many items in each, and I haven't found a way to search, only scroll.

更一般地说,如果该选项不存在,是否可以使用键盘快捷方式自定义中的命令名称来为该命令创建工具栏按钮?

More generally, and if the option doesn't exist, is there a way to use the command name in the keyboard shortcut customization to create a toolbar button for that command?

推荐答案

对于工具栏,您只能从现有VS菜单中添加命令.

For a toolbar you can add commands only from the existing VS menu.

对于其他命令,您可以创建一个中间 Visual Commander 命令DTE.ExecuteCommand("TeamFoundationContextMenus.Commands.GoToMyWork"),然后添加此 VCmd.Command01 命令添加到工具栏.

For additional commands, you can create an intermediate Visual Commander command DTE.ExecuteCommand("TeamFoundationContextMenus.Commands.GoToMyWork") and then add this VCmd.Command01 command to a toolbar.

这篇关于将工具栏按钮添加到TFS的“我的作品"在Visual Studio中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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