Visual Studio启动时自动打开Source Control Explorer [英] Automatically open Source Control Explorer when Visual Studio starts up

查看:348
本文介绍了Visual Studio启动时自动打开Source Control Explorer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在这里使用Visual Studio 2008/2010和Team Foundation Server.有时我只想使用Source Control Explorer.有没有一种方法可以启动Visual Studio并自动打开Source Control Explorer?理想情况下,我正在考虑在任务栏或桌面上自动执行此操作的快捷方式.

We use Visual Studio 2008/2010 and Team Foundation Server here at work. Sometimes I want to just use the Source Control Explorer. Is there a way to have Visual Studio launch and automatically open Source Control Explorer? I'm thinking ideally of having a shortcut on my taskbar or desktop that does this automatically.

是的,我确实知道,如果上次关闭Visual Studio时打开了源代码管理资源管理器"窗口,它将打开,但是即使我已经关闭了该窗口,我也希望始终直接进入源代码控制资源管理器"以前.

And yes, I do know that if the Source Control Explorer window was open the last time I shut down Visual Studio it will open up, but I am wanting to always go straight to Source Control Explorer even if I had closed that window previously.

推荐答案

好,我知道了-Source Control Explorer在Visual Studio IDE中可以作为命令(View.TfsSourceControlExplorer)使用,而Visual Studio可执行文件(devenv .exe)提供了/Command 参数以在IDE之后执行命令启动.就我而言,我使用以下命令行创建了桌面快捷方式:

OK, I figured it out - Source Control Explorer is available in the Visual Studio IDE as a command (View.TfsSourceControlExplorer), and the Visual Studio executable (devenv.exe) provides the /Command argument to execute a command after the IDE starts up. In my case, I have created a desktop shortcut with the following command line:

"C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe" 
         /Command View.TfsSourceControlExplorer

注意::如果您确实希望此程序快速加载并且不需要任何其他插件(在我的情况下 ReSharper .NET Reflector Pro ),那么您还可以在命令行中添加/SafeMode 参数

NOTE: if you really want this to load fast and don't need any other addins (in my case ReSharper and .NET Reflector Pro) then you can also add the /SafeMode argument to the command line.

这篇关于Visual Studio启动时自动打开Source Control Explorer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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