VS2012返回到一个正常的 TFS 检入窗口?

VS2012似乎删除了 VS2010中 TFS 签入的弹出窗口。现在,它似乎接管了侧边栏中的 Team Explorer 选项卡,并隐藏了重要的事情——比如我修改了哪些文件。在 VS2012中,是否有办法返回到一个正常的签入弹出窗口?

17397 次浏览

While the Pending Changes window is merged within the Team Explorer, the Solution Explorer allows filtering by what is pending to be checked in. In addition Open Files filter could also be applied. When the Pending Changes filter is applied, all or some of the files could be selected and right clicked and then there is an option to do the check in. That command takes directly to the Team Explorer in Pending Changes view. See below...

Solution Explorer - Pending Changes Filter

Use tf checkin command from Visual Studio command prompt and you will get the same old checkin window.

For me, the best solution is based on iSid's answer: to add an external tool that pops up the old dialog. You can do this from Visual Studio: TOOLS -> External Tools… -> Add, with the following values:

Title: Checkin (or any name that should be displayed in the menu)
Command: C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\TF.exe (this is the default VS install location on Windows x64)
Arguments: checkin
Initial directory: $(SolutionDir)

Here is a screenshot:
External Tools Dialog

You can invoke from TOOLS -> Checkin (or even assign a keyboard shortcut to Tools.ExternalCommand* as described here) and enjoy the old goodies with a new style:
Checkin Dialog

Note that this won't work if a solution is not opened, because of the $(SolutionDir) variable. To workaround this, you can hard-code the path to your workspace instead.

Additionally, tf.exe can be invoked with 'shelve' argument, which will show the old-style shelving dialog.

I think the easiest solution is just docking the Team Explorer tab as tabbed document (using the right-click menu). That way it will be equivalent to the popup dialog.

Right-click the tab and select

Another method is to use the Productivity Power Tools. This extension adds Windows shell integration so you can perform most of your TFS commands directly from within Windows without even having Visual Studio open. The Power Tools uses the old style windows when used from within Windows shell.