TFS 签入热键

发布于 2024-09-28 13:53:40 字数 201 浏览 1 评论 0原文

我刚刚开始使用 TFS,对热键有一些疑问。在解决方案资源管理器中选择项目、解决方案和文件确实很不舒服。

我只想将热键分配给 2 个操作:

  • 解决方案范围签入
  • 解决方案范围获取最新版本

但我在 Visual Studio 键盘设置的可用操作列表中找不到这些。如果有的话,有人可以帮我找到操作的名称吗?

I have just started using TFS and have some questions about hotkeys. It is really uncomfortable to select projects, solutions and files in Solution Explorer.

I want to assign hotkeys to just 2 operations:

  • Solution-wide checkin
  • Solution-wide get latest version

But I cant find these in the list of available operations in Visual Studio Keyboard Settings. Can someone help me with the names of operations if they are available?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

浅暮の光 2024-10-05 13:53:40

实际上,工具|选项|环境|键盘下有一大堆可用命令,您可以为其分配快捷键。其中一些是:

  • File.TfsCheckIn
  • File.TfsCheckInSilent
  • TfsCheckInDynamicSilent
  • ...

我无法确切地告诉您什么是什么以及什么最适合您使用。我想那里有一些关于此的文档 - 至少我希望如此;-)...

HTH!
托马斯

Actually, there are a whole bunch of commands available under Tools|Options|Environment|Keyboard, to which you can assign shortcuts. Some of them are:

  • File.TfsCheckIn
  • File.TfsCheckInSilent
  • TfsCheckInDynamicSilent
  • ...

I can't tell you exactly what is what and what is best for you to use. I guess there's some documentation about this out there - at least I hope so ;-)...

HTH!
Thomas

素食主义者 2024-10-05 13:53:40

如果您无法忍受在解决方案资源管理器中选择解决方案节点并使用 File.TfsCheckIn 的热键,我想您唯一的选择是使用这样的宏并为其分配热键:

Sub CheckInSolution()
    DTE.Windows.Item(Constants.vsWindowKindSolutionExplorer).Activate()

    Dim fi As System.IO.FileInfo = New System.IO.FileInfo(DTE.Solution.FullName)
    Dim name As String = fi.Name.Substring(0, fi.Name.Length - fi.Extension.Length)

    DTE.ActiveWindow.Object.GetItem(name).Select(vsUISelectionType.vsUISelectionTypeSelect)
    DTE.ExecuteCommand("ClassViewContextMenus.ClassViewProject.TfsContextCheckIn")
End Sub

If you can't live with selecting the solution node in the solution explorer and use a hotkey for File.TfsCheckIn, I guess that your only options is to use a macro like this and assign a hotkey for that:

Sub CheckInSolution()
    DTE.Windows.Item(Constants.vsWindowKindSolutionExplorer).Activate()

    Dim fi As System.IO.FileInfo = New System.IO.FileInfo(DTE.Solution.FullName)
    Dim name As String = fi.Name.Substring(0, fi.Name.Length - fi.Extension.Length)

    DTE.ActiveWindow.Object.GetItem(name).Select(vsUISelectionType.vsUISelectionTypeSelect)
    DTE.ExecuteCommand("ClassViewContextMenus.ClassViewProject.TfsContextCheckIn")
End Sub
够钟 2024-10-05 13:53:40

签入

CTRL + \CTRL + M - 切换到团队资源管理器
Alt + I - 提交更改。

别忘了评论!

for checkin :

CTRL + \ , CTRL + M - Switch to Team Explorer
Alt + I - commit changes.

don't forget the comment!

别靠近我心 2024-10-05 13:53:40

不可行,除非您只运行很少的 TFS 2010。

正确使用时,TFS 2010 需要的不仅仅是签入 - 包括将签入附加到与其相关的工作项。热键将使这成为不可能。在 TFS 中,您不会经常签入,只是为了完成工作项目(或者有时它们在网站上很长)。我每天大约进行 4-5 次检查,它们可能需要时间(集成、验证、文档),因此热键不会给我带来任何好处。

Not feasible, unless you only run very little of TFS 2010.

TFS 2010 when properly used requires a lot more than just checking in - including attaching your checkin to the work items that it is realted to. A hotkey would make this impossible. In TFS you do not check in THAT often, only to complete items of work (or if they are very long sometimes on the site). I do about 4-5 checking per day and they CAN take time (integration, validation, documentation), so a hotkey would bring me nothing.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文