Keyboard shortcut to get latest version in Visual Studio
I want a keyboard shortcut to Get Latest Version (Recursive) of the current solution in Visual Studio 2012. We are using TFS.
I've tried to map
File.GetLatestSolutionFiles
File.GetLatestVersion
File.TfsGetLatestVersion
but nothing happens. Any ideas?
As a workaround I've also tried, and failed, to map a keyboard shortcut to:
Tools.shell """c:Program Files (x86)Microsoft Visual Studio 11.0Common7IDETF.exe""" get $/OUR/REPOSITORY/Main /recursive
This is the command I want a keyboard shortcut to:
Alt-V P Home Alt-F RL
or
Alt-V P Home Menu L (This is how I do it every day)
A shorter solution is by binding one of the commands you listed; How did you try that, exactly?
2012年,你可以简单地做“ALT-F RL”
C:FooBarMain>tf get . /recursive
from Visual Studio Command Prompt
Full example
Put this in a bat-file:
@echo off
call "C:Program Files (x86)Microsoft Visual Studio 11.0Common7ToolsVsDevCmd.bat"
cd /d "C:FooBarMain"
tf get . /recursive
pause
Create a shortcut to the .bat-file on your desktop and assign a global key (I have mine mapped to CTRL+ALT+G) to that shortcut. You can assign keys if you right-click the shortcut and choose properties.
链接地址: http://www.djcxy.com/p/95322.html