简体   繁体   English

将键盘快捷键映射到 TFS 获取最新版本(递归)

[英]Map keyboard shortcut to TFS Get Latest Version (Recursive)

Does anyone know how I can successfully map a keyboard shortcut to the context menu command Get Latest Version (Recursive) which is seen when you right click on the solution in Solution Explorer and have the solution version controlled under TFS?有谁知道我如何成功地将键盘快捷键映射到上下文菜单命令获取最新版本(递归) ,当您在解决方案资源管理器中右键单击解决方案并在 TFS 下控制解决方案版本时会看到该命令?

在此处输入图片说明

Unfortunately, there is not any keyboard shortcut command for now. 不幸的是,目前没有任何键盘快捷键命令。 And there has been a related uservoice and already been closed. 并且已经有一个相关的uservoice,并且已经关闭。

Add a global shortcut to do a get latest version recursive on the opened solution 添加全局快捷方式以对打开的解决方案进行递归获取最新版本

If you simply not like to right click and select "Get Latest Version (Recursive)" option to do the get latest in Visual Studio. 如果您根本不喜欢右键单击并选择“获取最新版本(递归)”选项,则可以在Visual Studio中获取最新版本。

Just a kindly remind, there is also a 'get latest version' icon (a grey clock with a blue arrow pointing down on it) in the Source Control Explorer's menu bar. 谨在此提醒您,Source Control Explorer的菜单栏中还有一个“获取最新版本”图标 (灰色时钟,蓝色箭头指向其下方)。

获取最新图标

If an item (a folder or a file) is selected in the Source Control Explorer then clicking the icon will retrieve the latest version from TFS recursively. 如果在源代码管理资源管理器中选择了一个项目(文件夹或文件),则单击该图标将递归地从TFS检索最新版本。

Besides, you could use tf get command to do the same thing. 此外,您可以使用tf get命令执行相同的操作。

您可以在源代码管理项目上使用:“键盘菜单按钮”,然后“ l”

If anyone is still interested you can try my Visual studio extension: Keyz ( https://marketplace.visualstudio.com/items?itemName=YanivRubinpur.Keyz )如果有人仍然感兴趣,您可以尝试我的 Visual Studio 扩展:Keyz ( https://marketplace.visualstudio.com/items?itemName=YanivRubinpur.Keyz )

Just press Ctrl K, Ctrl J and it will "get latest" on the entire solution.只需按 Ctrl K、Ctrl J,它就会在整个解决方案上“获得最新的”。

I have built it since I didn't find any easy way to bind that command to a keyboard shortcut.我已经构建了它,因为我没有找到任何简单的方法来将该命令绑定到键盘快捷键。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM