Automatically open Source Control Explorer when Visual Studio starts up

前端 未结 2 1203
醉梦人生
醉梦人生 2020-12-24 05:28

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 laun

2条回答
  •  庸人自扰
    2020-12-24 06:20

    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
    

    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.

提交回复
热议问题