Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
217 views
in Technique[技术] by (71.8m points)

Automatically open Source Control Explorer when Visual Studio starts up

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.

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.

question from:https://stackoverflow.com/questions/2907614/automatically-open-source-control-explorer-when-visual-studio-starts-up

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.0Common7IDEdevenv.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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...